mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
made bias triggering stricter
{ } >>> {{ }}
This commit is contained in:
@ -108,7 +108,8 @@ function setOpenAIMessages(chat) {
|
||||
}
|
||||
|
||||
// replace bias markup
|
||||
content = (content ?? '').replace(/{.*}/g, '');
|
||||
//content = (content ?? '').replace(/{.*}/g, '');
|
||||
content = (content ?? '').replace(/{{(\*?.+?\*?)}}/g, '');
|
||||
|
||||
// Apply the "wrap in quotes" option
|
||||
if (role == 'user' && oai_settings.wrap_in_quotes) content = `"${content}"`;
|
||||
|
Reference in New Issue
Block a user