From be71140dd49404fb68f5f005e4f999f47de1b328 Mon Sep 17 00:00:00 2001 From: Wentao Lyu <35-wentao.lyu@users.noreply.git.stereye.tech> Date: Mon, 13 Mar 2023 10:20:07 +0800 Subject: [PATCH] fix: new message should append to the exist one --- client/src/components/Main/TextChat.jsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/src/components/Main/TextChat.jsx b/client/src/components/Main/TextChat.jsx index e73becc743..bd127a34d2 100644 --- a/client/src/components/Main/TextChat.jsx +++ b/client/src/components/Main/TextChat.jsx @@ -137,6 +137,7 @@ export default function TextChat({ messages }) { dispatch(setText('')); const submission = { + convo, isCustomModel, message: { sender: 'User', @@ -202,6 +203,7 @@ export default function TextChat({ messages }) { const data = JSON.parse(e.data); let text = data.text || data.response; + console.log(data) if (data.message) { messageHandler(text, currentState); }