Fix formatting of hidden messages

This commit is contained in:
Cohee 2023-11-05 18:34:11 +02:00
parent 304aa38f24
commit ebe5f355d3
1 changed files with 5 additions and 0 deletions

View File

@ -1274,6 +1274,11 @@ function messageFormatting(mes, ch_name, isSystem, isUser) {
isSystem = false;
}
// Let hidden messages have markdown
if (isSystem && ch_name !== systemUserName) {
isSystem = false;
}
// Prompt bias replacement should be applied on the raw message
if (!power_user.show_user_prompt_bias && ch_name && !isUser && !isSystem) {
mes = mes.replaceAll(substituteParams(power_user.user_prompt_bias), "");