Don't auto-select chat.comp preset if it's already selected

This commit is contained in:
Cohee
2023-06-17 20:28:02 +03:00
parent 2edebec52c
commit b85605cac8

View File

@@ -1134,6 +1134,11 @@ function trySelectPresetByName(name) {
}
}
// Don't change if the current preset is the same
if (preset_found && preset_found === oai_settings.preset_settings_openai) {
return;
}
if (preset_found) {
oai_settings.preset_settings_openai = preset_found;
const value = openai_setting_names[preset_found]