We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ce122c6 + cebb847 commit ded36f5Copy full SHA for ded36f5
1 file changed
src/react/useChatStream.ts
@@ -81,7 +81,7 @@ export function combineAIMessageChunkWithCompleteMessages(
81
})
82
83
const choicesDeltas = chunk.choices.filter((choice) => {
84
- return "delta" in choice
+ return "delta" in choice && choice.delta // NOTE: delte can be null
85
86
87
if (!existingMessageToComplete && choicesDeltas.length > 0) {
0 commit comments