Fix first message duplication

This commit is contained in:
Cohee
2023-10-09 18:22:50 +03:00
parent b84e6e07d1
commit d81151efa2

View File

@@ -4554,7 +4554,6 @@ async function getChatResult() {
if (chat.length === 1) { if (chat.length === 1) {
const chat_id = (chat.length - 1); const chat_id = (chat.length - 1);
await eventSource.emit(event_types.MESSAGE_RECEIVED, chat_id); await eventSource.emit(event_types.MESSAGE_RECEIVED, chat_id);
addOneMessage(chat[chat_id]);
await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, chat_id); await eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, chat_id);
} }
} }