Fix default sysprompt restoration

9101fb65733d1273441c820582b0126bf98d21d5

Cohee <18619528+Cohee1207@users.noreply.github.com>

2 files changed, +2 -2Showing whitespace changes
public/scripts/preset-manager.js+1 -1
@@ -455,7 +455,7 @@ class PresetManager {
455 }455 }
456456
457 isKeyedApi() {457 isKeyedApi() {
458 return this.apiId == 'textgenerationwebui' || this.apiId == 'context' || this.apiId == 'instruct';458 return this.apiId == 'textgenerationwebui' || this.isAdvancedFormatting();
459 }459 }
460460
461 isAdvancedFormatting() {461 isAdvancedFormatting() {
public/scripts/sysprompt.js+1 -1
@@ -153,7 +153,7 @@ export function initSystemPrompts() {
153 saveSettingsDebounced();153 saveSettingsDebounced();
154 });154 });
155155
156 $select.on('input', async function () {156 $select.on('change', async function () {
157 if (!power_user.sysprompt.enabled) {157 if (!power_user.sysprompt.enabled) {
158 $enabled.prop('checked', true).trigger('input');158 $enabled.prop('checked', true).trigger('input');
159 }159 }