mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-02 12:26:59 +01:00
Don't revert OAI model to default
This commit is contained in:
parent
f28e7cf47c
commit
374e931b2e
@ -718,10 +718,9 @@ function saveModelList(data) {
|
||||
}));
|
||||
});
|
||||
// If the selected model is not in the list, revert to default
|
||||
if (oai_settings.show_external_models && model_list.find((model) => model.id == oai_settings.openai_model)) {
|
||||
$('#model_openai_select').val(oai_settings.openai_model).trigger('change');
|
||||
} else {
|
||||
$('#model_openai_select').val(default_settings.openai_model).trigger('change');
|
||||
if (oai_settings.show_external_models) {
|
||||
const model = model_list.findIndex((model) => model.id == oai_settings.openai_model) !== -1 ? oai_settings.openai_model : default_settings.openai_model;
|
||||
$('#model_openai_select').val(model).trigger('change');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user