Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ const TIER_MAPPING: Record<string, { low: string; high: string; medium?: string
high: 'gemini-3.6-flash-high'
},
'gemini-3.5-flash': {
low: 'gemini-3.5-flash-low',
medium: 'gemini-3.5-flash-medium',
high: 'gemini-3.5-flash-high'
low: 'gemini-3.5-flash-extra-low',
medium: 'gemini-3.5-flash-low',
high: 'gemini-3-flash-agent'
},
'gemini-3.1-pro': {
low: 'gemini-3.1-pro-low',
Expand Down
8 changes: 8 additions & 0 deletions src/sdk/request/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ import { AGY_GENERATIVE_LANGUAGE_ENDPOINT } from "../../constants";
const REQUEST_MODEL_FALLBACKS: Record<string, string> = {
"gemini-2.5-flash-image": "gemini-2.5-flash",
"gemini-3.1-pro-high": "gemini-pro-agent",
// Safety net: the gemini-3.5-flash-low/medium/high tier ids no longer
// exist server-side. If any stale URL still contains them, remap to the
// current live ids. Primary fix is TIER_MAPPING in plugin.ts.
// medium -> gemini-3.5-flash-low (enum M20, display "Gemini 3.5 Flash (Medium)")
// high -> gemini-3-flash-agent (enum M84, display "Gemini 3.5 Flash (High)")
// low -> gemini-3.5-flash-extra-low (enum M187, display "Gemini 3.5 Flash (Low)")
"gemini-3.5-flash-medium": "gemini-3.5-flash-low",
"gemini-3.5-flash-high": "gemini-3-flash-agent",
};
const GENERATIVE_LANGUAGE_HOST = new URL(AGY_GENERATIVE_LANGUAGE_ENDPOINT).host;
const CODE_ASSIST_HOST_SUFFIX = "cloudcode-pa.googleapis.com";
Expand Down
Loading