mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Claude: fix prefills
This commit is contained in:
@ -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() }],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user