Claude: fix prefills

8b13c40e0de24a18be6825e42d45901d7e7a6826

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +1 -1Ignore whitespace
src/prompt-converters.js+1 -1
@@ -229,7 +229,7 @@ function convertClaudeMessages(messages, prefillString, useSysPrompt, humanMsgFi
229 messages.push({229 messages.push({
230 role: 'assistant',230 role: 'assistant',
231 // Dangling whitespace are not allowed for prefilling231 // Dangling whitespace are not allowed for prefilling
232 content: prefillString.trimEnd(),232 content: [{ type: 'text', text: prefillString.trimEnd() }],
233 });233 });
234 }234 }
235235