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:
|
…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.
fd3456e to
19143b1
Compare
|
Tested locally on
|
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). Names that priced before, the model name Usage shows and the token totals stay as they were.Scope
A small fix for an obvious bug, so no issue. Open PR #39852 edits the same suffix pattern (it adds
-xhighand-extra-high); whichever merges second needs a one-line rebase.Verification
prices ACP effort variants at the base model ratewithgemini-4-hydrogen-tiered-highandgemini-3-flash-agent-high, and a price check for the Hydrogen record. Onmainthe new rows map togemini-4-hydrogen-tieredandgemini-3-flash-agentand the record is unpriced; with the fix the test 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: format, lint, knip, graphql, typecheck and tests pass.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.