Merge pull request #5778 from ConnectAI-E/fix/5436
fix: botMessage reply date
This commit is contained in:
commit
6ded4e96e7
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue