fix: botMessage reply date

This commit is contained in:
Dogtiti 2024-11-06 14:53:08 +08:00
parent f4c9410c29
commit 85cdcab850
1 changed files with 1 additions and 0 deletions

View File

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