[Internal Testing] Promote Gemini 3.1 Flash Lite to GA and support Gemini 3.5 Flash#27705
Conversation
|
📊 PR Size: size/XL
|
Summary of ChangesHello, 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 streamlines the model management lifecycle by promoting Gemini 3.1 Flash Lite to GA and introducing support for Gemini 3.5 Flash. The changes include a significant refactor of the core configuration, policy resolution, and routing strategies to support dynamic model switching based on experiment flags and user permissions. Additionally, legacy preview models have been cleaned up across the codebase to ensure a consistent user experience in the CLI and terminal UI. Highlights
Using Gemini Code AssistThe 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
Customization To customize the 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 Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. 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. Footnotes
|
|
Size Change: +5.43 kB (+0.02%) Total Size: 34.1 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Code Review
This pull request adds support for the Gemini 3.5 Flash GA model, updates model routing and resolution logic, and retires the Gemini 3.1 Flash Lite preview model. It also updates configuration documentation, CLI UI components, and shell tool background execution cleanup. The review feedback highlights a parsing bug in llm-judge.ts where lowercase LLM responses are incorrectly stripped, and warns against mutating global module-level variables to set flash models, which introduces severe race conditions in concurrent environments.
Note: Security Review did not run due to the size of the PR.
3f8b76b to
3b82818
Compare
3b82818 to
1434b1f
Compare
1434b1f to
93328b9
Compare
93328b9 to
6781a30
Compare
6781a30 to
77dd708
Compare
|
✅ 63 tests passed successfully on gemini-3-flash-preview. 🧠 Model Steering GuidanceThis PR modifies files that affect the model's behavior (prompts, tools, or instructions).
This is an automated guidance message triggered by steering logic signatures. |
Summary
This commit merges and unifies three separate lines of changes onto the release branch:
gemini-3.1-flash-lite-preview/none) with the stablegemini-3.1-flash-liteGA model and updates the default auto-routing and policy chains to use it as the main lightweight fallback/utility tier.GEMINI_3_5_FLASH_GA_LAUNCHED) and backend capability switches to transition users over to Gemini 3.5 Flash when experiment flag values are present.gemini-3-flash-preview.Details
1. Core Model Configurations & Resolutions (
packages/core/src/config/)PREVIEW_GEMINI_FLASH_LITE_MODELas deprecated ('none') and promotedDEFAULT_GEMINI_FLASH_LITE_MODEL('gemini-3.1-flash-lite') to GA.DEFAULT_GEMINI_3_5_FLASH_MODEL('gemini-3.5-flash') andSECONDARY_GEMINI_3_5_FLASH_MODEL('gemini-3-flash').resolveModelandresolveClassifierModelto dynamically route alias strings (auto,pro,flash) depending on user preview permissions and 3.5 Flash experiment access flags.auto-gemini-3,auto-gemini-2.5,flash) using conditional contexts matchinguseGemini3_5FlashandhasAccessToPreview.flashandprotiers that resolve cleanly togemini-3.5-flashorgemini-3-flash-previewbased on user flags.hasGemini35FlashGAAccess()to probe runtime experiments and configure default flash models (setFlashModels).getReleaseChannel()helper mapping back to the standard version channel.2. Policy Chains & Fallback Mechanics (
packages/core/src/availability/)resolvePolicyChain) to dynamically check foruseGemini3_5Flashflags.getModelPolicyChaintemplates to conditionally loadproModeloverrides based on the 3.5 Flash GA launch settings.3. Routing Strategies (
packages/core/src/routing/strategies/)approvalModeStrategy,classifierStrategy,gemmaClassifierStrategy,numericalClassifierStrategy,overrideStrategy) to pass theuseGemini3_5Flashaccess context into all model resolution calls, ensuring aligned and predictable routing behavior across the agent workflow.4. Frontend & Terminal UI (
packages/cli/src/ui/components/)gemini-3.1-flash-lite,gemini-3.5-flash).none) from the selectable list.How to Validate
Do Sanity testing with Zed / Jetbrains
Pre-Merge Checklist