feat(oauth): add gemini-3.7-flash models for antigravity and agy providers - #10305
Conversation
…igravity Support gemini-3.7-flash and its thinking tiers (low/medium/high) for antigravity and agy providers. - Define public models, pricing, modelSpecs, and CLI tool definitions - Map tiers to live upstream id gemini-3.7-flash-tiered - Configure defaultThinkingBudget (low: 1024, medium: 8192, high: 32768) - Allow executor fallback on upstream 404 and 5xx errors - Add unit tests in antigravity-model-aliases.test.ts
e0685a0 to
e3593e6
Compare
|
lets go! |
|
Thanks for keeping the model catalog current — the gemini-3.7-flash tier additions follow the same shape as the 3.6/3.5 Flash work, which is appreciated. I ran the PR against its own CI (workflow run 31784352026-31784352028) and found the current CI red is caused by this diff, not inherited from base:
Separately, Once the upstream-id design question is resolved and the tests above are green, this should be in good shape to merge. Let me know if you'd like a hand narrowing down the root cause on the upstream side. |
Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
…odel Upstream (fetchAvailableModels on daily-cloudcode-pa) only accepts the single upstream id gemini-3.7-flash-tiered; the high/medium/low suffixed tier ids 404. Registering all four as distinct public model ids violates the base diegosouzapw#3696 uniqueness invariant (no two ANTIGRAVITY_PUBLIC_MODELS entries may resolve to the same upstream id). Collapse to the single live gemini-3.7-flash public model (aliased to gemini-3.7-flash-tiered) and drop the tiered specs, pricing, free-catalog and CLI entries accordingly, keeping the leading public model order (Gemini 3.6 tiers first) intact. Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
…CI merge-ref) Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>
Babysit summaryWas stale, had real defects. On first review the PR head was 76 commits behind the green
Fix (
Status after push (
Ready for human review & merge. |
Using that deep work 😆 |
ah really? 😃 |
…ravity-gemini-3.7-flash Resolves conflicts in modelSpecs.ts and antigravity-model-aliases.test.ts caused by release-side PR diegosouzapw#10422 (already merged) re-adding gemini-3.7-flash-high/medium live tier ids to the antigravity provider catalog. Both the collapsed gemini-3.7-flash id (this PR, antigravity + agy) and the suffixed live tier ids (diegosouzapw#10422, antigravity only) resolve to distinct upstream ids under the diegosouzapw#3696 uniqueness invariant, so both are kept. Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
…iders (diegosouzapw#10305) * feat(oauth): add gemini-3.7-flash models with reasoning tiers for antigravity Support gemini-3.7-flash and its thinking tiers (low/medium/high) for antigravity and agy providers. - Define public models, pricing, modelSpecs, and CLI tool definitions - Map tiers to live upstream id gemini-3.7-flash-tiered - Configure defaultThinkingBudget (low: 1024, medium: 8192, high: 32768) - Allow executor fallback on upstream 404 and 5xx errors - Add unit tests in antigravity-model-aliases.test.ts * fix(oauth): expose gemini-3.7-flash as one callable antigravity/agy model Upstream (fetchAvailableModels on daily-cloudcode-pa) only accepts the single upstream id gemini-3.7-flash-tiered; the high/medium/low suffixed tier ids 404. Registering all four as distinct public model ids violates the base diegosouzapw#3696 uniqueness invariant (no two ANTIGRAVITY_PUBLIC_MODELS entries may resolve to the same upstream id). Collapse to the single live gemini-3.7-flash public model (aliased to gemini-3.7-flash-tiered) and drop the tiered specs, pricing, free-catalog and CLI entries accordingly, keeping the leading public model order (Gemini 3.6 tiers first) intact. Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com> --------- Co-authored-by: adevwithpurpose <adevwithpurpose@users.noreply.github.com> Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com> Co-authored-by: Chewji9875 <Chewji9875@users.noreply.github.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
…iders (diegosouzapw#10305) * feat(oauth): add gemini-3.7-flash models with reasoning tiers for antigravity Support gemini-3.7-flash and its thinking tiers (low/medium/high) for antigravity and agy providers. - Define public models, pricing, modelSpecs, and CLI tool definitions - Map tiers to live upstream id gemini-3.7-flash-tiered - Configure defaultThinkingBudget (low: 1024, medium: 8192, high: 32768) - Allow executor fallback on upstream 404 and 5xx errors - Add unit tests in antigravity-model-aliases.test.ts * fix(oauth): expose gemini-3.7-flash as one callable antigravity/agy model Upstream (fetchAvailableModels on daily-cloudcode-pa) only accepts the single upstream id gemini-3.7-flash-tiered; the high/medium/low suffixed tier ids 404. Registering all four as distinct public model ids violates the base diegosouzapw#3696 uniqueness invariant (no two ANTIGRAVITY_PUBLIC_MODELS entries may resolve to the same upstream id). Collapse to the single live gemini-3.7-flash public model (aliased to gemini-3.7-flash-tiered) and drop the tiered specs, pricing, free-catalog and CLI entries accordingly, keeping the leading public model order (Gemini 3.6 tiers first) intact. Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com> --------- Co-authored-by: adevwithpurpose <adevwithpurpose@users.noreply.github.com> Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com> Co-authored-by: Chewji9875 <Chewji9875@users.noreply.github.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
…iders (diegosouzapw#10305) * feat(oauth): add gemini-3.7-flash models with reasoning tiers for antigravity Support gemini-3.7-flash and its thinking tiers (low/medium/high) for antigravity and agy providers. - Define public models, pricing, modelSpecs, and CLI tool definitions - Map tiers to live upstream id gemini-3.7-flash-tiered - Configure defaultThinkingBudget (low: 1024, medium: 8192, high: 32768) - Allow executor fallback on upstream 404 and 5xx errors - Add unit tests in antigravity-model-aliases.test.ts * fix(oauth): expose gemini-3.7-flash as one callable antigravity/agy model Upstream (fetchAvailableModels on daily-cloudcode-pa) only accepts the single upstream id gemini-3.7-flash-tiered; the high/medium/low suffixed tier ids 404. Registering all four as distinct public model ids violates the base resolve to the same upstream id). Collapse to the single live gemini-3.7-flash public model (aliased to gemini-3.7-flash-tiered) and drop the tiered specs, pricing, free-catalog and CLI entries accordingly, keeping the leading public model order (Gemini 3.6 tiers first) intact. Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com> --------- Co-authored-by: adevwithpurpose <adevwithpurpose@users.noreply.github.com> Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com> Co-authored-by: Chewji9875 <Chewji9875@users.noreply.github.com> Co-authored-by: diegosouzapw <8016841+diegosouzapw@users.noreply.github.com>
… on v3.8.49 PR diegosouzapw#10305 (cherry-picked as e6c49ec) assumes the tiered gemini-3.7-flash-high/medium public models from diegosouzapw#10422 (dynamic live-model discovery), which is not part of this branch. Only the collapsed gemini-3.7-flash model is actually registered here.
Summary
Adds
gemini-3.7-flashand its reasoning tiers (gemini-3.7-flash-high,gemini-3.7-flash-medium,gemini-3.7-flash-low) for theantigravity(OAuth) andagy(CLI) providers.Changes
open-sse/config/antigravityModelAliases.ts: Addedgemini-3.7-flashpublic models toANTIGRAVITY_PUBLIC_MODELSand mapped default alias togemini-3.7-flash-highinANTIGRAVITY_MODEL_ALIASES.open-sse/config/agyModels.ts: Addedgemini-3.7-flashtiers toAGY_PUBLIC_MODELS.src/shared/constants/modelSpecs.ts: Registered model specs forgemini-3.7-flashtiers.src/shared/constants/pricing/oauth-subscriptions.ts: Added pricing configuration for token/cost accounting underag.src/shared/constants/cliTools.ts: Added model aliases and default CLI models for Antigravity.open-sse/config/freeModelCatalog.data.ts: Added budget definitions to free model catalog.tests/unit/antigravity-model-aliases.test.ts: Added test assertions covering Gemini 3.7 Flash tiers.Verification
node --import tsx/esm --test tests/unit/antigravity-model-aliases.test.tspassed (8/8).