Преглед изворни кода

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,