You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a70bb78
Browse filesBrowse the repository at this point in the historyBrowse files
fix(google): route Gemini Flash to the renamed -tiered wire ids
Google renamed the live Flash model ids on both Cloud Code Assist and the
Generative Language API, appending a `-tiered` suffix. `gemini-3.7-flash`
now 404s on both surfaces, which took out the Antigravity default model:
gemini-3.7-flash -> 404 Requested entity was not found
gemini-3.7-flash-tiered -> 200
The failure was invisible from the picker, because the base id is still the
name the catalog, the usage log and the price overlays are keyed on. Only the
request path was wrong, so the fix is confined to the wire:
- Antigravity: GEMINI_FLASH_WIRE_ID carries the CCA spelling. The picker id
stays gemini-3.7-flash (pickerModelIdForDiscoveredWireId already strips the
suffix on discovery), and resolveAntigravityEffortWireModel emits the wire id
for both the thinkingLevel rule and the retired-tier rule.
- Direct AI Studio: resolveDirectGeminiWireModelId maps the renamed ids before
they reach the URL path. 3.5 is deliberately absent — it is not deprecated,
and a blanket suffix would break the generation that still works.
- The wire context-window key moves with the rename; the retired-id aliases
derive their window from that table, so leaving it stale would silently blank
the context window for every retired selection.
- Registry/free-directory publish gemini-3.7-flash on the direct Google surface.
Verified live against the running proxy: 3.5-flash, 3.6-flash, 3.7-flash and
the retired 3.5/3.6 aliases all return 200 on both Antigravity and direct,
and the effort ladder reaches the wire (reasoning_tokens 0/27/84 for
low/medium/high).
Regression tests pin the URL path and the picker/usage/price separation; both
were driven red against the pre-fix tree.
"- This applies only to intermediate progress text. Your final answer after the work is done is exempt: write it in full and at whatever length the task requires.",
46
46
].join("\n");
47
47
48
+
/**
49
+
* Google renamed the current Gemini Flash generations on the Generative Language API,
50
+
* appending a `-tiered` suffix (`gemini-3.7-flash` -> `gemini-3.7-flash-tiered`). The
51
+
* old `gemini-3.7-flash` path 404s, so a saved config or registry entry naming the base
52
+
* id must be resolved here before it reaches the URL. The user-facing id is deliberately
53
+
* left alone: the picker, the catalog, the usage log and the price overlays all stay
54
+
* keyed on the base id, and only the wire path learns the new spelling.
0 commit comments