mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-12 09:26:33 +01:00
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
Block a user