mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Emit message events on stream abortion
This commit is contained in:
@ -3102,6 +3102,11 @@ class StreamingProcessor {
|
|||||||
this.hideMessageButtons(this.messageId);
|
this.hideMessageButtons(this.messageId);
|
||||||
generatedPromptCache = '';
|
generatedPromptCache = '';
|
||||||
unblockGeneration();
|
unblockGeneration();
|
||||||
|
|
||||||
|
if (this.type !== 'swipe' && this.type !== 'impersonate') {
|
||||||
|
eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId);
|
||||||
|
eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
setFirstSwipe(messageId) {
|
setFirstSwipe(messageId) {
|
||||||
|
Reference in New Issue
Block a user