t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Antigravity Orchestrator models and new numeric model IDs (e.g. 1537) show as Unpriced in Usage Cost breakdown

Open PonkoKobo opened this issue 1 week ago • 0 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Run turns through the Antigravity provider using Orchestrator (Neon) (gemini-pro-orchestrator-neon) or gemini-4-hydrogen-orchestrator. The numeric fallback also reproduces with usage records containing only model ID 1537 (MODEL_PLACEHOLDER_M537).
  2. Open Usage → Cost and inspect the model breakdown.

Expected behavior

The affected Orchestrator variants should resolve to the existing base-model LiteLLM rates in usage-model-rates.json (gemini/gemini-4-neon, gemini/gemini-4-hydrogen, and gemini/gemini-4-argon for their respective variants). The corresponding token usage should contribute to the total estimated cost.

Actual behavior

The breakdown shows gemini-pro-orchestrator-neon, gemini-4-hydrogen-orchestrator, and antigravity-model-1537 as Unpriced. Their token usage contributes no estimated cost.

  • In apps/server/src/provider/Drivers/antigravityUsageReader.ts, antigravityRateModel() strips suffixes matching -(?:extra-low|low|medium|high|tiered|control|thinking|agent)$. It leaves gemini-4-hydrogen-orchestrator unchanged and lacks explicit mappings for Orchestrator slugs such as gemini-pro-orchestrator-neon and gemini-pro-orchestrator-g1-pro.
  • The MODEL_IDS fallback ends at 1419 (gemini-4-argon). When the reader cannot learn a name from metadata, ID 1537 becomes antigravity-model-1537, which has no rate match. Newer IDs such as 1533, 1534, and 1525 can also fall back to numeric names when metadata does not identify them. #19189 reports the earlier numeric fallback for a different model, and #39828 mentions the missing mapping for the separate Neon ID 1532.

Suggested fix: Map gemini-pro-orchestrator-neon to gemini-4-neon and gemini-pro-orchestrator-g1-pro to gemini-4-argon for rate lookup. Strip -orchestrator for base-named variants such as gemini-4-hydrogen-orchestrator. Add the confirmed 1537 mapping to MODEL_IDS and verify other current MODEL_PLACEHOLDER_M* mappings before adding them.

Impact

Minor bug or occasional failure

Version or commit

0.1.11 (commit 59651c1761f6)

Environment

Windows x64, T3 Code Desktop 0.1.11, Antigravity ACP 1.5.13.

Logs or stack traces

Sanitized ACP log excerpt and the rate keys observed in the local usage-model-rates.json.

ACP: Orchestrator (Neon) (enum: MODEL_PLACEHOLDER_M537)
Rate keys:
  gemini/gemini-4-neon
  gemini/gemini-4-hydrogen
  gemini/gemini-4-argon

Screenshots, recordings, or supporting files

No response

Workaround

In Usage → All environments → Model prices, add a model alias (usageModelAliases) to gemini-4-neon or gemini-4-hydrogen, as appropriate. You can also use Set price on the unpriced row to add a manual price override (usagePriceOverrides).

PonkoKobo avatar Nov 21 '26 13:11 PonkoKobo