mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix default sysprompt restoration
This commit is contained in:
@@ -455,7 +455,7 @@ class PresetManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isKeyedApi() {
|
isKeyedApi() {
|
||||||
return this.apiId == 'textgenerationwebui' || this.apiId == 'context' || this.apiId == 'instruct';
|
return this.apiId == 'textgenerationwebui' || this.isAdvancedFormatting();
|
||||||
}
|
}
|
||||||
|
|
||||||
isAdvancedFormatting() {
|
isAdvancedFormatting() {
|
||||||
|
@@ -153,7 +153,7 @@ export function initSystemPrompts() {
|
|||||||
saveSettingsDebounced();
|
saveSettingsDebounced();
|
||||||
});
|
});
|
||||||
|
|
||||||
$select.on('input', async function () {
|
$select.on('change', async function () {
|
||||||
if (!power_user.sysprompt.enabled) {
|
if (!power_user.sysprompt.enabled) {
|
||||||
$enabled.prop('checked', true).trigger('input');
|
$enabled.prop('checked', true).trigger('input');
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user