From 96b18f77951cc2cbe1e1eb0b862a59749743c5f6 Mon Sep 17 00:00:00 2001 From: Andrew Xu Date: Sat, 23 Mar 2024 10:11:38 +0800 Subject: [PATCH] Solve the problem of displaying repeated incorrect words during the streaming output process in Chinese and other languages. (#1552) --- components/chat/chat-helpers/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/chat/chat-helpers/index.ts b/components/chat/chat-helpers/index.ts index 72867efeb7..46bd671061 100644 --- a/components/chat/chat-helpers/index.ts +++ b/components/chat/chat-helpers/index.ts @@ -325,7 +325,7 @@ export const processResponse = async ( const updatedChatMessage: ChatMessage = { message: { ...chatMessage.message, - content: chatMessage.message.content + contentToAdd + content: fullText }, fileItems: chatMessage.fileItems }