fix(gemini): update model catalog for retired/new Gemini models#11793
Merged
fix(gemini): update model catalog for retired/new Gemini models#11793
Conversation
Gemini 1.x models are fully retired (returning 404), gemini-3-pro-preview was shut down March 9 2026, and new 3.1 series models were missing. - Add gemini-3.1-pro-preview, gemini-3.1-flash-lite-preview, gemini-3.1-flash-image-preview - Replace gemini-3-pro-preview with gemini-3.1-pro-preview everywhere - Remove retired Gemini 1.x models (gemini-1.0-pro, gemini-1.5-pro, gemini-1.5-flash, gemini-1.5-flash-8b) - Remove retired experimental 2.0 image gen models - Fix default model from retired gemini-pro to gemini-2.5-flash - Update docs, onboarding config, VSCode schema, GUI model picker, VertexAI provider - Update isRecommendedAgentModel regex and tests Fixes #10996, #10998
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Contributor
There was a problem hiding this comment.
2 issues found across 15 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="extensions/vscode/config_schema.json">
<violation number="1" location="extensions/vscode/config_schema.json:973">
P2: The Gemini model enum is missing `gemini-3.1-flash-image-preview`, so a supported Gemini model is rejected by VS Code schema validation.</violation>
</file>
<file name="core/llm/toolSupport.ts">
<violation number="1" location="core/llm/toolSupport.ts:464">
P2: The new Gemini regex is too broad and will incorrectly classify `gemini-3-flash` (non-preview) as a recommended agent model.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
- Add missing gemini-3.1-flash-image-preview to VS Code schema enum - Tighten isRecommendedAgentModel regex to match 3-flash-preview (not bare 3-flash) - Update case-insensitivity tests for new model names
This was referenced Mar 25, 2026
- Rename test to "Gemini 3.1 Pro and 3 Flash Preview models" to match assertions - Update chat.mdx heading from "Gemini 3 Pro" to "Gemini 3.1 Pro"
Patrick-Erichsen
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gemini-3.1-pro-preview,gemini-3.1-flash-lite-preview,gemini-3.1-flash-image-preview)gemini-3-pro-previewwithgemini-3.1-pro-previewacross codebasegemini-1.0-pro,gemini-1.5-pro,gemini-1.5-flash,gemini-1.5-flash-8b) which return 404gemini-protogemini-2.5-flashFixes #10996
Fixes #10998
Context
Google retired all Gemini 1.x models and shut down
gemini-3-pro-previewon March 9, 2026 (redirects togemini-3.1-pro-preview). New 3.1 series models are now the recommended defaults. Thev1betaAPI base was already correct.Test plan
gemini-3.1-pro-previewworks with Gemini API keygemini-3-flash-previewworks with Gemini API keytoolSupport.test.tstests passSummary by cubic
Update the Gemini model catalog to add the 3.1 series, remove retired 1.x and old 3 Pro models, and align defaults, UI, and docs with supported options. Also fixes schema and agent-model detection so users only see and select working models.
New Features
gemini-3.1-pro-preview,gemini-3.1-flash-lite-preview, andgemini-3.1-flash-image-previewgemini-3.1-flash-image-preview), onboarding, docs (Gemini 3.1 Pro heading), and providers (Gemini,VertexAI,CometAPI)gemini-3.1-pro-previewandgemini-3-flash-previewonly; refreshed tests and recommendationsMigration
gemini-1.0-pro,gemini-1.5-pro,gemini-1.5-flash,gemini-1.5-flash-8b, and retired 2.0 image-gen variantsgemini-3-pro-previewwithgemini-3.1-pro-preview; replacegemini-prowithgemini-2.5-flashwhere usedWritten for commit 440ff0c. Summary will update on new commits.