diff --git a/open-sse/utils/stream.js b/open-sse/utils/stream.js index 6557cd15..2115fef3 100644 --- a/open-sse/utils/stream.js +++ b/open-sse/utils/stream.js @@ -98,9 +98,10 @@ export function createSSEStream(options = {}) { if (hasValidUsage(finalUsage)) { logUsage(isPassthrough ? provider : (state?.provider || targetFormat), finalUsage, model, connectionId, apiKey); - } else { - appendRequestLog({ model, provider, connectionId, tokens: null, status: "200 OK" }).catch(() => { }); } + // No else branch: the old appendRequestLog() fallback was a no-op stub + // (request log is derived from usageHistory on read) and was dropped by + // the master merge; logging a 200 with tokens:null was a cosmetic entry. if (onStreamComplete) { onStreamComplete({ diff --git a/src/app/api/providers/test-batch/route.js b/src/app/api/providers/test-batch/route.js index 7f055420..2a45c414 100644 --- a/src/app/api/providers/test-batch/route.js +++ b/src/app/api/providers/test-batch/route.js @@ -6,6 +6,7 @@ import { OAUTH_PROVIDERS, APIKEY_PROVIDERS, OPENAI_COMPATIBLE_PREFIX, + ANTHROPIC_COMPATIBLE_PREFIX, } from "@/shared/constants/providers"; import { testSingleConnection } from "../[id]/test/testUtils.js";