Repository navigation
feat(antigravity): add Gemini 4 Carbon and Hydrogen models - #501
Merged
Merged
Conversation
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
Adds the Gemini 4 models Google now offers in Antigravity to the bundled Google AI Pro / Antigravity plugin:
gemini-4-carbon-high/-medium/-lowgemini-4-hydrogen-xhigh/-high/-medium/-lowThe model IDs and
model_enumvalues come from a livev1internal:fetchAvailableModelsresponse for an entitled account (Carbon M427/M437/M438, Hydrogen M528/M525/M526/M527), and they match the IDs inside theagy1.5.10 binary. Accounts without access getgemini-4-carbon-disabled/gemini-4-hydrogen-disabledentries; the existing prefix suppression already hides every matching shipped variant for them.No feature flag. This only adds catalog entries to a plugin that already ships.
Verification
packages/antigravity-plugin:bun test(80 pass),bun run typecheckpackages/core:provider-antigravity.test.tsandsession-antigravity-error.test.ts(14 pass)bun run checkpassedwrapGenerateRequest+applyRequestHeaderson an entitled account:gemini-4-hydrogen-low,gemini-4-hydrogen-xhighandgemini-4-carbon-loweach returned 200 with the expected replyVisual