adding comments

This commit is contained in:
qvink
2025-03-27 09:40:42 -06:00
parent 1dcd837eb1
commit dac5f6910c
3 changed files with 5 additions and 4 deletions

View File

@@ -528,7 +528,8 @@ function setOpenAIMessages(chat) {
let role = chat[j]['is_user'] ? 'user' : 'assistant';
let content = chat[j]['mes'];
// If this flag is set, completely ignore the message
// 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 (chat[j].extra?.[IGNORE_SYMBOL]) {
j++;
continue;