mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-05 05:39:36 +01:00
TTS: Ignore prompt-hidden messages on auto narration
This commit is contained in:
parent
e4d012e49d
commit
b7f31cb2ce
@ -755,6 +755,11 @@ async function onMessageEvent(messageId, lastCharIndex) {
|
||||
const message = structuredClone(context.chat[messageId]);
|
||||
const hashNew = getStringHash(message?.mes ?? '');
|
||||
|
||||
// Ignore prompt-hidden messages
|
||||
if (message.is_system) {
|
||||
return;
|
||||
}
|
||||
|
||||
// if no new messages, or same message, or same message hash, do nothing
|
||||
if (hashNew === lastMessageHash) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user