Claude: fix prefills
This commit is contained in:
parent
689dbad2d1
commit
8b13c40e0d
|
@ -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() }],
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue