fix(model): custom model choose error (#164)

This commit is contained in:
Haze
2026-02-25 16:38:03 +08:00
committed by GitHub
Unverified
parent 1166074a52
commit 265b12281c
4 changed files with 98 additions and 64 deletions

View File

@@ -52,7 +52,7 @@ const REGISTRY: Record<string, ProviderBackendMeta> = {
},
google: {
envVar: 'GEMINI_API_KEY',
defaultModel: 'google/gemini-3-pro-preview',
defaultModel: 'google/gemini-3.1-pro-preview',
// google is built-in to OpenClaw's pi-ai catalog, no providerConfig needed.
// Adding models.providers.google overrides the built-in and can break Gemini.
},
@@ -94,6 +94,9 @@ const REGISTRY: Record<string, ProviderBackendMeta> = {
apiKeyEnv: 'SILICONFLOW_API_KEY',
},
},
custom: {
envVar: 'CUSTOM_API_KEY',
},
// Additional providers with env var mappings but no default model
groq: { envVar: 'GROQ_API_KEY' },
deepgram: { envVar: 'DEEPGRAM_API_KEY' },