mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-03-03 03:17:54 +01:00
Emit message events on stream abortion
This commit is contained in:
parent
58238fe42b
commit
70450d7867
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user