Fix the restoring of the last selected model

This commit is contained in:
patriceac 2023-01-10 19:00:19 -08:00 committed by GitHub
parent 8b764a8fd3
commit d24a7a5c5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1313,7 +1313,7 @@ async function getModels() {
modelOption.value = path + modelName
modelOption.innerHTML = modelName !== '' ? (path != "" ? "  "+modelName : modelName) : 'None'
if (modelName === selectedModel) {
if (path + modelName === selectedModel) {
modelOption.selected = true
}
modelField.appendChild(modelOption)