mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-08 08:08:51 +01:00
Add continue type to not-emit list
This commit is contained in:
parent
70450d7867
commit
075391e720
@ -3103,7 +3103,8 @@ class StreamingProcessor {
|
|||||||
generatedPromptCache = '';
|
generatedPromptCache = '';
|
||||||
unblockGeneration();
|
unblockGeneration();
|
||||||
|
|
||||||
if (this.type !== 'swipe' && this.type !== 'impersonate') {
|
const noEmitTypes = ['swipe', 'impersonate', 'continue'];
|
||||||
|
if (!noEmitTypes.includes(this.type)) {
|
||||||
eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId);
|
eventSource.emit(event_types.MESSAGE_RECEIVED, this.messageId);
|
||||||
eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId);
|
eventSource.emit(event_types.CHARACTER_MESSAGE_RENDERED, this.messageId);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user