Преглед на файлове

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,