Merge pull request #415 from ouoertheo/ouoertheo/objectives1

Objective Extension - Agent based AI inspired by BabyAGI and AutoGPT
This commit is contained in:
Cohee
2023-06-01 00:32:46 +03:00
committed by GitHub
6 changed files with 370 additions and 0 deletions

View File

@ -423,6 +423,7 @@ export const event_types = {
MESSAGE_EDITED: 'message_edited',
MESSAGE_DELETED: 'message_deleted',
IMPERSONATE_READY: 'impersonate_ready',
CHAT_CHANGED: 'chat_id_changed',
}
export const eventSource = new EventEmitter();
@ -3582,6 +3583,7 @@ async function getChatResult() {
if (chat.length === 1) {
await eventSource.emit(event_types.MESSAGE_RECEIVED, (chat.length - 1));
}
await eventSource.emit(event_types.CHAT_CHANGED, (getCurrentChatId()));
}
async function openCharacterChat(file_name) {