Repository navigation
fix(server): Antigravity's Gemini 4 Hydrogen (High) usage is no longer unpriced - #40901
kristianbonnici wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
fd3456e to
19143b1
Compare
|
Tested locally on
|
…r unpriced Strip stacked effort and routing suffixes one at a time and check the known aliases after each step, so gemini-4-hydrogen-tiered-high prices at the gemini-4-hydrogen rate and gemini-3-flash-agent-high keeps the gemini-3.5-flash alias.
19143b1 to
46fd777
Compare
Problem
Antigravity records Gemini 4 Hydrogen (High) as
gemini-4-hydrogen-tiered-high. Usage prices an effort or routing variant at its base model's rate by stripping the suffix, but it stripped only the last one: this name looked upgemini-4-hydrogen-tiered, found no rate, and showed as Unpriced, adding $0 to the estimated cost. Its tokens were counted; only the cost was missing.Change
antigravityRateModelstrips stacked effort and routing suffixes one at a time and checks the known aliases after each step, sogemini-4-hydrogen-tiered-highprices at thegemini-4-hydrogenrate and an alias keeps its rate under a suffix (gemini-3-flash-agent-highprices asgemini-3.5-flash, notgemini-3-flash-preview). Token extraction and the overall token count are unchanged.Scope
A small fix for an obvious bug, so no issue.
Verification
gemini-4-hydrogen-tiered-highandgemini-3-flash-agent-highto the existing testprices Antigravity effort and routing variants at their base model, with a price check for each. Onmainthe test fails: they map togemini-4-hydrogen-tieredandgemini-3-flash-agent, names the test's rate table has no rate for. With the fix it passes.readAntigravityUsageandpriceUsageonmainand on this branch over snapshots of my own Antigravity conversation databases. The only difference: 29 calls (0.42M tokens) recorded asgemini-4-hydrogen-tiered-highwere Unpriced onmainand price at thegemini-4-hydrogenrate here. No other model's records or prices changed.vp run check:changed origin/main: format, lint, knip, graphql, typecheck and tests (2 files) pass; I didn't run the full CI suites or build locally.Created with Claude Opus 5.5 in Claude Code, running in T3 Code. Reviewed by GPT-6.2 Sol in Codex, Claude Opus 5.5 in Claude Code, Orchestrator (Neon) in Antigravity and DeepSeek V4.1 Flash in OpenCode.