Bläddra i källkod

fix: botMessage reply date

Dogtiti 1 år sedan
förälder
incheckning
85cdcab850
1 ändrade filer med 1 tillägg och 0 borttagningar
  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);