mirror of https://github.com/openclaw/openclaw.git
Gateway: normalize OpenAI stream chunk text
This commit is contained in:
parent
726ef48c2a
commit
9dab154519
|
|
@ -526,7 +526,7 @@ export async function handleOpenAiHttpRequest(
|
|||
}
|
||||
|
||||
if (evt.stream === "assistant") {
|
||||
const content = resolveAssistantStreamDeltaText(evt);
|
||||
const content = resolveAssistantStreamDeltaText(evt) ?? "";
|
||||
if (!content) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue