diff --git a/src/prompt-converters.js b/src/prompt-converters.js index fc58d78f7..925e8d209 100644 --- a/src/prompt-converters.js +++ b/src/prompt-converters.js @@ -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() }], }); }