From dedfa563c2e6fcb902b4a9b865d34422ce23d822 Mon Sep 17 00:00:00 2001 From: Frank Date: Thu, 11 Sep 2025 01:31:49 -0400 Subject: wip: zen --- cloud/app/src/routes/zen/v1/chat/completions.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'cloud/app/src/routes/zen') diff --git a/cloud/app/src/routes/zen/v1/chat/completions.ts b/cloud/app/src/routes/zen/v1/chat/completions.ts index b68264cc4..dc69bb514 100644 --- a/cloud/app/src/routes/zen/v1/chat/completions.ts +++ b/cloud/app/src/routes/zen/v1/chat/completions.ts @@ -6,9 +6,7 @@ export function POST(input: APIEvent) { return handler(input, { modifyBody: (body: any) => ({ ...body, - stream_options: { - include_usage: true, - }, + ...(body.stream ? { stream_options: { include_usage: true } } : {}), }), setAuthHeader: (headers: Headers, apiKey: string) => { headers.set("authorization", `Bearer ${apiKey}`) -- cgit v1.2.3