Fix default sysprompt restoration
| @@ -455,7 +455,7 @@ class PresetManager { | |||
| 455 | } | 455 | } |
| 456 | 456 | ||
| 457 | isKeyedApi() { | 457 | isKeyedApi() { |
| 458 | return this.apiId == 'textgenerationwebui' || this.apiId == 'context' || this.apiId == 'instruct'; | 458 | return this.apiId == 'textgenerationwebui' || this.isAdvancedFormatting(); |
| 459 | } | 459 | } |
| 460 | 460 | ||
| 461 | isAdvancedFormatting() { | 461 | isAdvancedFormatting() { |
| @@ -153,7 +153,7 @@ export function initSystemPrompts() { | |||
| 153 | saveSettingsDebounced(); | 153 | saveSettingsDebounced(); |
| 154 | }); | 154 | }); |
| 155 | 155 | ||
| 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 | } |