fix: replace discontinued gemini-2.5-pro-preview-03-25 with stable gemini-2.5-pro (#802)

Updates both the model config mappings (configs.ts) and the runtime
fallback in getDefaultOpusModel() (model.ts) so Gemini mode no longer
falls back to the discontinued preview model when GEMINI_MODEL is unset.

Fixes #398
This commit is contained in:
Juan Camilo Auriti
2026-04-21 11:01:33 +02:00
committed by GitHub
parent 85eab2751e
commit 64582c119d
2 changed files with 6 additions and 6 deletions

View File

@@ -140,7 +140,7 @@ export function getDefaultOpusModel(): ModelName {
}
// Gemini provider
if (getAPIProvider() === 'gemini') {
return process.env.GEMINI_MODEL || 'gemini-2.5-pro-preview-03-25'
return process.env.GEMINI_MODEL || 'gemini-2.5-pro'
}
// Mistral provider
if (getAPIProvider() === 'mistral') {