fix: #2564 should not clear message when error

This commit is contained in:
Yidadaa 2023-08-08 21:24:45 +08:00
parent 769c2f9f49
commit 4ab9141429

View File

@ -332,7 +332,7 @@ export const useChatStore = create<ChatStore>()(
},
onError(error) {
const isAborted = error.message.includes("aborted");
botMessage.content =
botMessage.content +=
"\n\n" +
prettyObject({
error: true,