Properly stop group auto mode generation with stop button

This commit is contained in:
SillyLossy
2023-06-03 01:44:40 +03:00
parent 15d88d3df2
commit cf9e87ed25
2 changed files with 20 additions and 5 deletions

View File

@ -424,6 +424,7 @@ export const event_types = {
MESSAGE_DELETED: 'message_deleted',
IMPERSONATE_READY: 'impersonate_ready',
CHAT_CHANGED: 'chat_id_changed',
GENERATION_STOPPED: 'generation_stopped',
}
export const eventSource = new EventEmitter();
@ -6707,6 +6708,7 @@ $(document).ready(function () {
abortController.abort();
hideStopButton();
}
eventSource.emit(event_types.GENERATION_STOPPED);
});
$('.drawer-toggle').click(function () {