mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 22:54:46 +00:00
fix(openai): use chat completion choice delta type
This commit is contained in:
@@ -1520,7 +1520,8 @@ async function processOpenAICompletionsStream(
|
||||
}
|
||||
}
|
||||
const choiceDelta =
|
||||
choice.delta ?? (choice as unknown as { message?: ChatCompletionChunk["delta"] }).message;
|
||||
choice.delta ??
|
||||
(choice as unknown as { message?: ChatCompletionChunk["choices"][number]["delta"] }).message;
|
||||
if (!choiceDelta) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user