mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Don't auto-select chat.comp preset if it's already selected
This commit is contained in:
@@ -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) {
|
if (preset_found) {
|
||||||
oai_settings.preset_settings_openai = preset_found;
|
oai_settings.preset_settings_openai = preset_found;
|
||||||
const value = openai_setting_names[preset_found]
|
const value = openai_setting_names[preset_found]
|
||||||
|
Reference in New Issue
Block a user