mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-29 16:54:30 +00:00
Gateway: normalize OpenAI stream chunk text
This commit is contained in:
@@ -526,7 +526,7 @@ export async function handleOpenAiHttpRequest(
|
||||
}
|
||||
|
||||
if (evt.stream === "assistant") {
|
||||
const content = resolveAssistantStreamDeltaText(evt);
|
||||
const content = resolveAssistantStreamDeltaText(evt) ?? "";
|
||||
if (!content) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user