From cbb8f4a4dae772a534445bf7fb672fc02d71dd54 Mon Sep 17 00:00:00 2001 From: Christiaan Arnoldus Date: Mon, 1 Jun 2026 16:37:02 +0200 Subject: [PATCH 1/2] Log unsupported API error and remove Roo check --- apps/web/src/app/api/openrouter/[...path]/route.ts | 6 ++---- apps/web/src/lib/ai-gateway/llm-proxy-helpers.ts | 8 +++----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/apps/web/src/app/api/openrouter/[...path]/route.ts b/apps/web/src/app/api/openrouter/[...path]/route.ts index 7ca85f082..8d00f4fab 100644 --- a/apps/web/src/app/api/openrouter/[...path]/route.ts +++ b/apps/web/src/app/api/openrouter/[...path]/route.ts @@ -435,8 +435,7 @@ export async function POST(request: NextRequest): Promise, - fraudHeaders: FraudDetectionHeaders + supportedApiKinds: ReadonlyArray ) { - const error = isRooCodeBasedClient(fraudHeaders) - ? 'This model requires Kilo v7 or newer. Please upgrade Kilo and try again.' - : `This model does not support the ${apiKind} API, please use any of: ${supportedApiKinds.join()}`; + const error = `This model does not support the ${apiKind} API, please use any of: ${supportedApiKinds.join()}`; + console.warn(`[apiKindNotSupportedResponse] ${error}`); return NextResponse.json( { error, error_type: ProxyErrorType.api_kind_not_supported, message: error }, { status: 400 } From bd8ae30e22d0840282cf1a0bb2299b27ff0b739c Mon Sep 17 00:00:00 2001 From: Christiaan Arnoldus Date: Mon, 1 Jun 2026 16:46:38 +0200 Subject: [PATCH 2/2] Update apps/web/src/lib/ai-gateway/llm-proxy-helpers.ts Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com> --- apps/web/src/lib/ai-gateway/llm-proxy-helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/lib/ai-gateway/llm-proxy-helpers.ts b/apps/web/src/lib/ai-gateway/llm-proxy-helpers.ts index 2f69011f6..649da34d1 100644 --- a/apps/web/src/lib/ai-gateway/llm-proxy-helpers.ts +++ b/apps/web/src/lib/ai-gateway/llm-proxy-helpers.ts @@ -150,7 +150,7 @@ export function apiKindNotSupportedResponse( supportedApiKinds: ReadonlyArray ) { const error = `This model does not support the ${apiKind} API, please use any of: ${supportedApiKinds.join()}`; - console.warn(`[apiKindNotSupportedResponse] ${error}`); + warnExceptInTest(`[apiKindNotSupportedResponse] ${error}`); return NextResponse.json( { error, error_type: ProxyErrorType.api_kind_not_supported, message: error }, { status: 400 }