diff options
| author | Frank <[email protected]> | 2025-09-11 01:31:49 -0400 |
|---|---|---|
| committer | Frank <[email protected]> | 2025-09-11 01:32:06 -0400 |
| commit | dedfa563c2e6fcb902b4a9b865d34422ce23d822 (patch) | |
| tree | 94a090077b154ac441afa9bf81992068823cc950 /cloud/app/src/routes | |
| parent | 7aa57accf52bb79d16cac34e55b5c979090d8305 (diff) | |
| download | opencode-dedfa563c2e6fcb902b4a9b865d34422ce23d822.tar.gz opencode-dedfa563c2e6fcb902b4a9b865d34422ce23d822.zip | |
wip: zen
Diffstat (limited to 'cloud/app/src/routes')
| -rw-r--r-- | cloud/app/src/routes/zen/v1/chat/completions.ts | 4 |
1 files changed, 1 insertions, 3 deletions
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}`) |
