Claude: fix prefills

This commit is contained in:
Cohee 2024-10-04 21:48:35 +03:00
parent 689dbad2d1
commit 8b13c40e0d
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ function convertClaudeMessages(messages, prefillString, useSysPrompt, humanMsgFi
messages.push({
role: 'assistant',
// Dangling whitespace are not allowed for prefilling
content: prefillString.trimEnd(),
content: [{ type: 'text', text: prefillString.trimEnd() }],
});
}