Feat/antigravity models#34
Merged
Merged
Conversation
- Map 4 public model IDs to upstream IDs (gemini-3.5-flash-*, gemini-3-pro-preview) - Add fallback chains for gemini-3.1-pro-high/low on upstream 400 errors - Apply alias resolution in wrapRequest via overrideModel param - Retry Chat/Stream with next fallback candidate on ErrUpstream - Add 13 antigravity models to provider catalog
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What
Add Antigravity provider support with model alias mapping, upstream fallback chains, and full model catalog.
Why
Antigravity Cloud Code API uses different upstream model IDs than the public-facing names. Models like
gemini-3.5-flash-highresolve togemini-3-flash-agentupstream. Additionally, some Pro-family models silently rename their upstream IDs (causing 400 errors), requiring ordered fallback retry chains.
How
gemini-3.5-flash-*,gemini-3-pro-preview) applied at request wrap timegemini-3.1-pro-highandgemini-3.1-pro-lowhave ordered candidate lists;Chat/Streamretry with next candidate onErrUpstreamwrapRequest: newoverrideModelparam for fallback candidates, resolved through alias map before envelope constructionproviderModelsDesign decisions:
ErrUpstream, not client errorsChecklist
go build ./internal/connectors/passesgo test ./internal/connectors/passes (8 tests)make testpassesmake vetpasses