From 72f91a4994dd4c50e26d98c349ece1b9b6e743f9 Mon Sep 17 00:00:00 2001 From: qvink Date: Wed, 26 Mar 2025 09:28:42 -0600 Subject: [PATCH] use custom flag instead --- public/script.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/script.js b/public/script.js index ad6d810e0..73aefe7fb 100644 --- a/public/script.js +++ b/public/script.js @@ -5301,8 +5301,9 @@ function formatMessageHistoryItem(chatItem, isInstruct, forceOutputSequence) { const itemName = chatItem.is_user ? chatItem['name'] : characterName; const shouldPrependName = !isNarratorType; - // Don't format messages with undefined content - if (chatItem.mes === undefined) { + // If this flag is set, completely ignore the message. + // This can be used to hide messages without affecting the number of messages in the chat. + if (chatItem.ignore_formatting) { return ''; }