fix(auth): use OpenClaw-recognized model names (openrouter/auto, etc.)

This commit is contained in:
Haze
2026-02-06 03:53:26 +08:00
Unverified
parent a36c3c5399
commit 07320042a7

View File

@@ -167,10 +167,10 @@ export function buildProviderEnvVars(providers: Array<{ type: string; apiKey: st
* Used to set the gateway's default model when the user selects a provider
*/
const PROVIDER_DEFAULT_MODELS: Record<string, string> = {
anthropic: 'anthropic/claude-opus-4-6',
openai: 'openai/gpt-5.2',
google: 'google/gemini-3-pro-preview',
openrouter: 'openrouter/anthropic/claude-opus-4.6',
anthropic: 'anthropic/claude-opus-4-5',
openai: 'openai/gpt-5',
google: 'google/gemini-2.5-pro-preview',
openrouter: 'openrouter/auto',
};
/**