mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
custom flag in message.extra, also apply to chat completion
This commit is contained in:
@ -5303,7 +5303,7 @@ function formatMessageHistoryItem(chatItem, isInstruct, forceOutputSequence) {
|
||||
|
||||
// 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) {
|
||||
if (chatItem.extra?.ignore) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user