fix(gateway): mark openai role chunks unfinished · openclaw/openclaw@fd86ab2
steipete
·
2026-05-06
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -148,7 +148,7 @@ function writeAssistantRoleChunk(res: ServerResponse, params: { runId: string; m
|
148 | 148 | object: "chat.completion.chunk", |
149 | 149 | created: Math.floor(Date.now() / 1000), |
150 | 150 | model: params.model, |
151 | | -choices: [{ index: 0, delta: { role: "assistant" } }], |
| 151 | +choices: [{ index: 0, delta: { role: "assistant" }, finish_reason: null }], |
152 | 152 | }); |
153 | 153 | } |
154 | 154 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。