fix(gateway): mark openai role chunks unfinished

This commit is contained in:
Peter Steinberger
2026-05-05 11:21:15 +01:00
parent d520bc4cb6
commit fd86ab2e50

View File

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