use custom flag instead

This commit is contained in:
qvink
2025-03-26 09:28:42 -06:00
parent abb908e62c
commit 72f91a4994

View File

@ -5301,8 +5301,9 @@ function formatMessageHistoryItem(chatItem, isInstruct, forceOutputSequence) {
const itemName = chatItem.is_user ? chatItem['name'] : characterName; const itemName = chatItem.is_user ? chatItem['name'] : characterName;
const shouldPrependName = !isNarratorType; const shouldPrependName = !isNarratorType;
// Don't format messages with undefined content // If this flag is set, completely ignore the message.
if (chatItem.mes === undefined) { // This can be used to hide messages without affecting the number of messages in the chat.
if (chatItem.ignore_formatting) {
return ''; return '';
} }