瀏覽代碼

fix: #2564 should not clear message when error

Yidadaa 1 年之前
父節點
當前提交
4ab9141429
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/store/chat.ts

+ 1 - 1
app/store/chat.ts

@@ -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,