mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-01-19 04:50:12 +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({
|
messages.push({
|
||||||
role: 'assistant',
|
role: 'assistant',
|
||||||
// Dangling whitespace are not allowed for prefilling
|
// Dangling whitespace are not allowed for prefilling
|
||||||
content: prefillString.trimEnd(),
|
content: [{ type: 'text', text: prefillString.trimEnd() }],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user