mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
TTS: Ignore prompt-hidden messages on auto narration
This commit is contained in:
@ -755,6 +755,11 @@ async function onMessageEvent(messageId, lastCharIndex) {
|
|||||||
const message = structuredClone(context.chat[messageId]);
|
const message = structuredClone(context.chat[messageId]);
|
||||||
const hashNew = getStringHash(message?.mes ?? '');
|
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 no new messages, or same message, or same message hash, do nothing
|
||||||
if (hashNew === lastMessageHash) {
|
if (hashNew === lastMessageHash) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user