Skip to content

Commit

Permalink
Some code comments corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
timamus committed Sep 21, 2024
1 parent 510fd4d commit 1581780
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/SettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -268,19 +268,19 @@ const loadModels = async () => {
}
};
// Функция для установки значения модели
// Function to set the model value
function setModel(val) {
settings.model.value = val
settings.model.value = val;
}
const modelOptions = ref(settings.models.value)
const modelOptions = ref(settings.models.value);
// Функция для фильтрации вариантов
// Function to filter the model options
function filterFn(val, update, abort) {
update(() => {
const needle = val.toLowerCase() // Важно: используем toLowerCase, а не toLocaleLowerCase, если не требуется учитывать локаль
modelOptions.value = settings.models.value.filter(v => v.toLowerCase().includes(needle))
})
const needle = val.toLowerCase(); // Important: using toLowerCase, instead of toLocaleLowerCase, unless you need to account for locale.
modelOptions.value = settings.models.value.filter(v => v.toLowerCase().includes(needle));
});
}
</script>
Expand Down

0 comments on commit 1581780

Please sign in to comment.