From fd86ab2e50038eeffb9e106a6ffb77634c83a2b1 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Tue, 5 May 2026 11:21:15 +0100 Subject: [PATCH] fix(gateway): mark openai role chunks unfinished --- src/gateway/openai-http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gateway/openai-http.ts b/src/gateway/openai-http.ts index cce77af0025..ab3153a4a23 100644 --- a/src/gateway/openai-http.ts +++ b/src/gateway/openai-http.ts @@ -148,7 +148,7 @@ function writeAssistantRoleChunk(res: ServerResponse, params: { runId: string; m object: "chat.completion.chunk", created: Math.floor(Date.now() / 1000), model: params.model, - choices: [{ index: 0, delta: { role: "assistant" } }], + choices: [{ index: 0, delta: { role: "assistant" }, finish_reason: null }], }); }