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:
Cohee 2024-03-08 19:35:49 +02:00
parent ae378789fe
commit 35ee126c03
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ function convertClaudeMessages(messages, prefillString, useSysPrompt, humanMsgFi
if (prefillString) {
mergedMessages.push({
role: 'assistant',
content: prefillString,
content: prefillString.trimEnd(),
});
}