Repository navigation
fix(antigravity): map Gemini 3.7 Flash tiers to upstream tiered endpoint model (#10341) - #10882
Merged
diegosouzapw merged 2 commits intoAug 20, 2026
Merged
Conversation
…int model (#10341) - Map gemini-3.7-flash, gemini-3.7-flash-high, gemini-3.7-flash-medium, gemini-3.7-flash-low to gemini-3.7-flash-tiered in ANTIGRAVITY_MODEL_ALIASES - Map gpt-oss-120b bare alias to gpt-oss-120b-medium - Configure defaultThinkingBudget and thinkingBudgetCap for Gemini 3.7 Flash tiers in modelSpecs.ts - Include gemini-3.7-flash-tiered in public model catalogs - Update unit tests in antigravity-model-aliases and agy-gemini-3696-tier-passthrough
Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…int model (diegosouzapw#10341) (diegosouzapw#10882) Merged — clean single-commit cherry-pick extracted from diegosouzapw#10879's genuinely new content (see PR body for the full extraction rationale). typecheck/file-size/changelog gates clean, 11/11 tests passing.
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.
Fixes #10341
Clean cherry-pick of the value commit from #10879 (by @adevwithpurpose), whose branch had accumulated ~100 commits of already-merged release history and could not be diffed directly (GitHub: diff too large). The other 3 commits ahead of the release tip on that branch were duplicates of #10834 (compression) and #10800 (conversations), already merged separately, and an already-shipped cherry-pick of upstream #10709. This PR carries only the genuinely new antigravity fix, unmodified, with the original author's commit preserved.
Summary
When using Antigravity/AGY with Gemini 3.7 Flash tiers (
gemini-3.7-flash-high,gemini-3.7-flash-medium,gemini-3.7-flash-low, orgemini-3.7-flash), Google's internal Cloud Code endpoint (streamGenerateContent) expects the underlying model idgemini-3.7-flash-tieredinside the request envelope. Sending raw tier strings directly causes Google's endpoint to reject the request or time out after 30s.Changes
open-sse/config/antigravityModelAliases.ts): maps the four tier aliases →gemini-3.7-flash-tiered; baregpt-oss-120b→gpt-oss-120b-medium; includesgemini-3.7-flash-tieredinANTIGRAVITY_PUBLIC_MODELS/AGY_PUBLIC_MODELS.src/shared/constants/modelSpecs.ts): configuresdefaultThinkingBudget(24576/8192/1024 for High/Medium/Low) andthinkingBudgetCap: 24576.antigravity-model-aliases.test.tsandagy-gemini-3696-tier-passthrough.test.ts.Validation
npm run typecheck:core— cleannode scripts/check/check-file-size.mjs/check-changelog-integrity.mjs— OKtests/unit/antigravity-model-aliases.test.ts+tests/unit/agy-gemini-3696-tier-passthrough.test.ts— 11/11 passingCo-authored-by: safeer asafeer1994@gmail.com