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 }], }); }