Clear custom model selection on loading presets

2b3e44cca344fd8badc802374052863fed66cf37

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

1 files changed, +2 -0Showing whitespace changes
public/scripts/openai.js+2 -0
@@ -3971,6 +3971,8 @@ function onSettingsPresetChange() {
39713971 settings: oai_settings,
39723972 savePreset: saveOpenAIPreset,
39733973 }).finally(r => {
3974+ $('.model_custom_select').empty();
3975+
39743976 for (const [key, [selector, setting, isCheckbox]] of Object.entries(settingsToUpdate)) {
39753977 if (preset[key] !== undefined) {
39763978 if (isCheckbox) {