Przeglądaj źródła

fix: botMessage reply date

Dogtiti 1 rok temu
rodzic
commit
85cdcab850
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      app/store/chat.ts

+ 1 - 0
app/store/chat.ts

@@ -428,6 +428,7 @@ export const useChatStore = createPersistStore(
             botMessage.streaming = false;
             if (message) {
               botMessage.content = message;
+              botMessage.date = new Date().toLocaleString();
               get().onNewMessage(botMessage, session);
             }
             ChatControllerPool.remove(session.id, botMessage.id);