From e1bb80d9c7326af459db5f44e70609598b84fb31 Mon Sep 17 00:00:00 2001 From: Anthony Hausman Date: Wed, 22 Jul 2026 22:20:35 +0200 Subject: [PATCH 1/2] fix(agy): map gemini-3.5-flash tiers to live server ids Server-side tieredModelIds revoked gemini-3.5-flash-low/medium/high and replaced with gemini-3.5-flash-extra-low, gemini-3.5-flash-low, and gemini-3-flash-agent. The plugin's TIER_MAPPING still sent dead ids to v1internal:streamGenerateContent, triggering 'Requested entity was not found.' Add safety-net fallbacks for any stale tier ids still cached. Assisted-by: GLM 5.2 --- src/plugin.ts | 6 +++--- src/sdk/request/shared.ts | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/plugin.ts b/src/plugin.ts index 69e695b4..399d87f6 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -134,9 +134,9 @@ const TIER_MAPPING: Record = { "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"; From 6a652359c47ea76a3bceaf267a5e887df8e6985f Mon Sep 17 00:00:00 2001 From: Anthony Hausman Date: Fri, 24 Jul 2026 06:42:47 +0200 Subject: [PATCH 2/2] chore(global): bump version to 1.1.6-alpha.0 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6ddd1a54..16e099ac 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@anthonyhaussman/opencode-agy-auth", - "version": "1.1.5", + "version": "1.1.6-alpha.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@anthonyhaussman/opencode-agy-auth", - "version": "1.1.5", + "version": "1.1.6-alpha.0", "license": "MIT", "dependencies": { "@openauthjs/openauth": "^0.4.3", diff --git a/package.json b/package.json index 7f10f2ac..b545c2b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@anthonyhaussman/opencode-agy-auth", - "version": "1.1.5", + "version": "1.1.6-alpha.0", "author": "antigravity", "main": "./dist/index.js", "module": "./dist/index.js",