mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-09 16:49:01 +01:00
Trim whitespace at the end of Claude's prefill.
Otherwise it won't pass validation. I didn't make the rules.
This commit is contained in:
parent
ae378789fe
commit
35ee126c03
@ -172,7 +172,7 @@ function convertClaudeMessages(messages, prefillString, useSysPrompt, humanMsgFi
|
||||
if (prefillString) {
|
||||
mergedMessages.push({
|
||||
role: 'assistant',
|
||||
content: prefillString,
|
||||
content: prefillString.trimEnd(),
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user