Merge pull request #5778 from ConnectAI-E/fix/5436

fix: botMessage reply date
This commit is contained in:
Lloyd Zhou 2024-11-06 15:04:46 +08:00 committed by GitHub
commit 6ded4e96e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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);