#21920: fix(antigravity): map deprecated Gemini 3 Pro to Gemini 3.1 Pro
agents
size: XS
Cluster:
Gemini 3.1 Model Enhancements
## Summary
Fixes #21875
- Google deprecated Gemini 3 Pro in Google Antigravity. Users selecting a Gemini model via the `google-antigravity` provider get: *"Gemini 3 Pro is no longer available. Please switch to Gemini 3.1 Pro"*
- The existing `normalizeGoogleModelId` function was never called for the `google-antigravity` provider path — only for the direct `google` (API key) provider
- Adds `normalizeAntigravityModelId` that remaps `gemini-3-pro` and `gemini-3-pro-preview` to `gemini-3.1-pro`
- Wires it into `normalizeProviderModelId` for the `google-antigravity` provider
## Test plan
- [ ] CI passes
- [ ] Configure `google-antigravity/gemini-3-pro` and verify it resolves to `gemini-3.1-pro`
- [ ] Verify direct `google` provider (`gemini-3-pro-preview`) is unaffected
Most Similar PRs
#21257: # feat: add Gemini 3.1 Pro (low/high reasoning) model support
by GhadiSaab · 2026-02-19
79.5%
#23034: Add Gemini 3.1 Pro to Google model normalizer and OpenCode Zen catalog
by Clawborn · 2026-02-21
78.5%
#21263: fix: add google-vertex support for Gemini 3.1 models
by pdd-cli · 2026-02-19
74.8%
#22899: fix(models): synthesize antigravity Gemini 3.1 pro high/low models
by Phineas1500 · 2026-02-21
72.2%
#23040: Upgrade default Google model to Gemini 3.1 Pro and add Venice catal...
by Clawborn · 2026-02-21
71.4%
#21181: fix(models): add gemini-3.1-pro-preview forward-compat for google-g...
by Mellowambience · 2026-02-19
70.0%
#16687: fix(antigravity): default to Gemini 3 Pro and remove broken depreca...
by vincentkoc · 2026-02-15
69.5%
#21835: fix: apply schema cleaning for google-antigravity in normalizeToolP...
by ephraimm · 2026-02-20
69.4%
#17841: fix(google): include 'google' provider in tool schema sanitization
by zerone0x · 2026-02-16
69.2%
#22214: fix(tools): sanitize google-antigravity schemas for Gemini-compatib...
by Kansodata · 2026-02-20
68.5%