From f27261d373abfcdd819c7d032c4f9c0b7b8d889d Mon Sep 17 00:00:00 2001 From: "continue[bot]" Date: Tue, 21 Apr 2026 16:07:14 +0000 Subject: [PATCH 1/4] fix: use x-goog-api-key header instead of URL query param for Gemini API Move API key from URL query string to x-goog-api-key header when fetching Gemini models. This prevents credentials from being exposed in server logs, browser history, or referrer headers. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue Co-authored-by: bekah-hawrot-weigel --- core/llm/fetchModels.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/llm/fetchModels.ts b/core/llm/fetchModels.ts index 88fe1946f95..efbff8bca97 100644 --- a/core/llm/fetchModels.ts +++ b/core/llm/fetchModels.ts @@ -179,8 +179,11 @@ async function fetchGeminiModels( ): Promise { const base = apiBase || "https://generativelanguage.googleapis.com/v1beta/"; const url = new URL("models", base); - url.searchParams.set("key", apiKey ?? ""); - const response = await fetch(url); + const response = await fetch(url, { + headers: { + "x-goog-api-key": apiKey ?? "", + }, + }); if (!response.ok) { throw new Error(`Failed to fetch Gemini models: ${response.status}`); } From 3b7efb76dc44b2af157e857e5ef67da045f48898 Mon Sep 17 00:00:00 2001 From: "continue[bot]" Date: Tue, 21 Apr 2026 16:20:54 +0000 Subject: [PATCH 2/4] fix: update deprecated claude-3-haiku model in smoke tests The claude-3-haiku-20240307 model has been deprecated by Anthropic and now returns not_found_error. Updated to claude-3-5-haiku-latest which is the current replacement. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue Co-authored-by: bekah-hawrot-weigel --- extensions/cli/src/smoke-api/smoke-api-helpers.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/cli/src/smoke-api/smoke-api-helpers.ts b/extensions/cli/src/smoke-api/smoke-api-helpers.ts index ee2dcc922d7..915fa968598 100644 --- a/extensions/cli/src/smoke-api/smoke-api-helpers.ts +++ b/extensions/cli/src/smoke-api/smoke-api-helpers.ts @@ -48,9 +48,9 @@ export async function cleanupSmokeContext( } } -// Override via SMOKE_MODEL env var. Falls back to claude-3-haiku which is -// widely available and cheap. -const SMOKE_MODEL = process.env.SMOKE_MODEL || "claude-3-haiku-20240307"; +// Override via SMOKE_MODEL env var. Falls back to claude-3-5-haiku which is +// widely available and cost-effective. +const SMOKE_MODEL = process.env.SMOKE_MODEL || "claude-3-5-haiku-latest"; /** * Writes a YAML config that points at the real Anthropic API. From 5e2cd1cec63e5f913160569da729ac18071fc742 Mon Sep 17 00:00:00 2001 From: "continue[bot]" Date: Tue, 21 Apr 2026 16:33:36 +0000 Subject: [PATCH 3/4] fix: use correct claude-haiku-4-5-20251001 model name for smoke tests The model naming convention has changed - claude-3-5-haiku-latest is not a valid model name. Updated to use claude-haiku-4-5-20251001 which is the correct current Anthropic haiku model. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue Co-authored-by: bekah-hawrot-weigel --- extensions/cli/src/smoke-api/smoke-api-helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/cli/src/smoke-api/smoke-api-helpers.ts b/extensions/cli/src/smoke-api/smoke-api-helpers.ts index 915fa968598..174e294d1a9 100644 --- a/extensions/cli/src/smoke-api/smoke-api-helpers.ts +++ b/extensions/cli/src/smoke-api/smoke-api-helpers.ts @@ -48,9 +48,9 @@ export async function cleanupSmokeContext( } } -// Override via SMOKE_MODEL env var. Falls back to claude-3-5-haiku which is +// Override via SMOKE_MODEL env var. Falls back to claude-haiku-4-5 which is // widely available and cost-effective. -const SMOKE_MODEL = process.env.SMOKE_MODEL || "claude-3-5-haiku-latest"; +const SMOKE_MODEL = process.env.SMOKE_MODEL || "claude-haiku-4-5-20251001"; /** * Writes a YAML config that points at the real Anthropic API. From c087f99e157b61f55e4576715a4dd4d40d8ad4fb Mon Sep 17 00:00:00 2001 From: "continue[bot]" Date: Tue, 21 Apr 2026 16:41:00 +0000 Subject: [PATCH 4/4] fix: align comment with actual model name in smoke tests Updated the comment to match the exact model name claude-haiku-4-5-20251001 to prevent confusion during maintenance. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue Co-authored-by: bekah-hawrot-weigel --- extensions/cli/src/smoke-api/smoke-api-helpers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/cli/src/smoke-api/smoke-api-helpers.ts b/extensions/cli/src/smoke-api/smoke-api-helpers.ts index 174e294d1a9..2d00f50b96a 100644 --- a/extensions/cli/src/smoke-api/smoke-api-helpers.ts +++ b/extensions/cli/src/smoke-api/smoke-api-helpers.ts @@ -48,8 +48,8 @@ export async function cleanupSmokeContext( } } -// Override via SMOKE_MODEL env var. Falls back to claude-haiku-4-5 which is -// widely available and cost-effective. +// Override via SMOKE_MODEL env var. Falls back to claude-haiku-4-5-20251001 +// which is widely available and cost-effective. const SMOKE_MODEL = process.env.SMOKE_MODEL || "claude-haiku-4-5-20251001"; /**