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…
Reference in New Issue