fix(models): add Gemini 3.1 Pro/Flash to google-gemini-cli provider catalog#27425
fix(models): add Gemini 3.1 Pro/Flash to google-gemini-cli provider catalog#27425rish2jain wants to merge 1 commit intoopenclaw:mainfrom
Conversation
Greptile SummaryFixed missing Gemini 3.1 models in
One minor point to verify: Confidence Score: 4/5
Last reviewed commit: 25350ef |
| id: "gemini-3.1-flash-preview", | ||
| name: "Gemini 3.1 Flash", | ||
| reasoning: true, |
There was a problem hiding this comment.
Check that gemini-3.1-flash-preview should have reasoning: true. This differs from gemini-3-flash-preview (3.0) which has reasoning: false (line 487).
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/agents/models-config.providers.ts
Line: 504-506
Comment:
Check that `gemini-3.1-flash-preview` should have `reasoning: true`. This differs from `gemini-3-flash-preview` (3.0) which has `reasoning: false` (line 487).
How can I resolve this? If you propose a fix, please make it concise.|
This pull request has been automatically marked as stale due to inactivity. |
Summary
Closes #22559, #23007.
Users authenticated via the Gemini CLI OAuth provider (
google-gemini-cli) could not selectgemini-3.1-pro-previeworgemini-3.1-flash-preview— the models showed asconfigured,missingbecause thegoogle-gemini-cliprovider's catalog was not updated when Gemini 3.1 landed.What changed
src/agents/models-config.providers.ts: AddedbuildGoogleGeminiCliProvider()that defines an explicit model catalog for thegoogle-gemini-cliprovider (Gemini 3.0 + 3.1 Pro/Flash), and wired it intoresolveImplicitProviders()so the catalog is written tomodels.jsonwhenever agoogle-gemini-cliauth profile exists.extensions/google-gemini-cli-auth/index.ts: UpdatedDEFAULT_MODELfromgemini-3-pro-preview→gemini-3.1-pro-previewso fresh OAuth flows default to the latest model.src/commands/google-gemini-model-default.ts: UpdatedGOOGLE_GEMINI_DEFAULT_MODELtogoogle/gemini-3.1-pro-preview.src/config/defaults.ts: Updatedgeminialias to resolve togemini-3.1-pro-preview; addedgemini-3andgemini-3-flashaliases for backward compatibility.src/agents/models-config.gemini-cli-catalog.test.ts: Unit tests covering model IDs, reasoning flags, context windows, API type, and input modalities.Backward compatibility
google-gemini-cli/gemini-3-pro-previewcontinue to work — both 3.0 models remain in the catalog.gemini-3andgemini-3-flashshort aliases are added so existing alias users aren't broken.Change Type
Scope
Security Impact
google-gemini-cliOAuth profileTesting
Made with Cursor