mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Add config value type converters for numbers and booleans
This commit is contained in:
@@ -572,7 +572,7 @@ export function convertMistralMessages(messages, names) {
|
||||
}
|
||||
|
||||
// Make the last assistant message a prefill
|
||||
const prefixEnabled = getConfigValue('mistral.enablePrefix', false);
|
||||
const prefixEnabled = getConfigValue('mistral.enablePrefix', false, 'boolean');
|
||||
const lastMsg = messages[messages.length - 1];
|
||||
if (prefixEnabled && messages.length > 0 && lastMsg?.role === 'assistant') {
|
||||
lastMsg.prefix = true;
|
||||
|
Reference in New Issue
Block a user