Skip to content

fix: remove deprecated gemini-3-pro-preview from gemini-cli model list#1824

Closed
ghost wants to merge 1 commit intomainfrom
unknown repository
Closed

fix: remove deprecated gemini-3-pro-preview from gemini-cli model list#1824
ghost wants to merge 1 commit intomainfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Mar 4, 2026

gemini-3-pro-preview has been taken down by Google and is no longer available. Its presence in the static model list was also preventing gemini-3.1-pro-preview from being visible in the available models list.

Replaced by keeping gemini-3.1-pro-preview as the primary Pro Preview model.

gemini-3-pro-preview has been taken down by Google and is no longer
available. Its presence in the static model list was also preventing
gemini-3.1-pro-preview from being visible in the available models list.

Replaced by keeping gemini-3.1-pro-preview as the primary Pro Preview model.
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request addresses the deprecation of the gemini-3-pro-preview model by removing its entry from the Gemini CLI's static model definitions. This ensures that users no longer encounter an unavailable model and, as a beneficial side effect, correctly enables the visibility of the gemini-3.1-pro-preview model within the CLI.

Highlights

  • Deprecated Model Removed: The gemini-3-pro-preview model definition has been removed from the static list in the Gemini CLI, as it is no longer supported by Google.
  • Model Visibility Improved: Removing the deprecated model resolves an issue that was preventing the gemini-3.1-pro-preview model from appearing in the list of available models.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • internal/registry/model_definitions_static_data.go
    • Commented out the definition for the gemini-3-pro-preview model.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the deprecated gemini-3-pro-preview model from the gemini-cli model list. My feedback is to remove the model definition block entirely instead of commenting it out, to avoid leaving dead code in the codebase.

I also noticed that gemini-3-pro-preview is still present in other model lists (GetGeminiModels, GetGeminiVertexModels, GetAIStudioModels). Since the model is deprecated, consider removing it from these lists as well for consistency, either in this PR or a follow-up.

Comment on lines +454 to +468
// {
// ID: "gemini-3-pro-preview",
// Object: "model",
// Created: 1737158400,
// OwnedBy: "google",
// Type: "gemini",
// Name: "models/gemini-3-pro-preview",
// Version: "3.0",
// DisplayName: "Gemini 3 Pro Preview",
// Description: "Our most intelligent model with SOTA reasoning and multimodal understanding, and powerful agentic and vibe coding capabilities",
// InputTokenLimit: 1048576,
// OutputTokenLimit: 65536,
// SupportedGenerationMethods: []string{"generateContent", "countTokens", "createCachedContent", "batchGenerateContent"},
// Thinking: &ThinkingSupport{Min: 128, Max: 32768, ZeroAllowed: false, DynamicAllowed: true, Levels: []string{"low", "high"}},
// },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To improve maintainability, it's better to completely remove this deprecated model definition rather than commenting it out. This prevents dead code from accumulating in the codebase.

@luispater luispater closed this Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants