fix: occasional multiple responses displayed in frontend due to unexpected message_id from onData (#2231)

This commit is contained in:
Ricky
2024-01-26 15:08:37 +08:00
committed by GitHub
parent 4ab66299d4
commit bd0af2e921

View File

@@ -110,7 +110,7 @@ const handleStream = (response: Response, onData: IOnData, onCompleted?: IOnComp
// mute handle message cut off // mute handle message cut off
onData('', isFirstMessage, { onData('', isFirstMessage, {
conversationId: bufferObj?.conversation_id, conversationId: bufferObj?.conversation_id,
messageId: bufferObj?.id, messageId: bufferObj?.message_id,
}) })
return return
} }