Fix default sysprompt restoration

This commit is contained in:
Cohee 2024-09-22 20:06:26 +03:00
parent 5b65448a70
commit 9101fb6573
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -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');
} }