feat(ai): add Gemini 3.1 Pro support for google-antigravity provider#1691
Closed
yorha59 wants to merge 1 commit intobadlogic:mainfrom
Closed
feat(ai): add Gemini 3.1 Pro support for google-antigravity provider#1691yorha59 wants to merge 1 commit intobadlogic:mainfrom
yorha59 wants to merge 1 commit intobadlogic:mainfrom
Conversation
- Add gemini-3.1-pro-high and gemini-3.1-pro-low to antigravity model registry
- Update DEFAULT_ANTIGRAVITY_VERSION from 1.15.8 to 1.18.0
(Google sandbox requires UA >= 1.18.0 for Gemini 3.1 models)
- Gemini 3 Pro has been deprecated by Google ('please switch to 3.1')
Verified via direct API testing against the Antigravity sandbox endpoint:
- gemini-3.1-pro-low with UA 1.18.0: 200 OK ✅
- gemini-3.1-pro-high with UA 1.18.0: 200 OK ✅
- gemini-3.1-pro-low with UA 1.15.8: 'upgrade to latest version' ❌
- gemini-3-pro-low: 'switch to Gemini 3.1 Pro' (deprecated)
Contributor
|
Hi @yorha59, thanks for your interest in contributing! We ask new contributors to open an issue first before submitting a PR. This helps us discuss the approach and avoid wasted effort. Next steps:
This PR will be closed automatically. See https://github.com/badlogic/pi-mono/blob/main/CONTRIBUTING.md for more details. |
|
I was gonna post a PR but I guess I'm an hour late lol. I know I'm not the maintainer but a nice UX improvement would be to make the thinking options for |
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.
Summary
Add Gemini 3.1 Pro model support for the
google-antigravityprovider.Google has deprecated Gemini 3 Pro (the sandbox now returns "Gemini 3 Pro is no longer available. Please switch to Gemini 3.1 Pro"), so this PR adds the new model variants.
Changes
1.
packages/ai/scripts/generate-models.tsgemini-3.1-pro-highandgemini-3.1-pro-lowto theantigravityModelsarray2.
packages/ai/src/models.generated.tsgemini-3.1-pro-highandgemini-3.1-pro-lowunder thegoogle-antigravityprovider3.
packages/ai/src/providers/google-gemini-cli.tsDEFAULT_ANTIGRAVITY_VERSIONfrom1.15.8to1.18.0(required — the sandbox returns "not available on this version. Please upgrade" for UA < 1.18.0)Testing
gemini-3.1-pro-highandgemini-3.1-pro-lowreturn 200 OK from the antigravity sandbox APIgemini-3-pro-high,gemini-3-flash) still work with the new UA versionNotes
gemini-3.1-pro-high(deeper reasoning) andgemini-3.1-pro-low(faster, lighter reasoning)gemini-3.1-pro(without suffix) returns 404; the-high/-lowsuffix is mandatory