use only model id for fuzzy filtering in model selector (#151)

This commit is contained in:
Markus Ylisiurunen
2025-12-08 23:35:31 +01:00
committed by GitHub
parent 628ead2485
commit aaafc8627d
@@ -115,7 +115,7 @@ export class ModelSelectorComponent extends Container {
}
private filterModels(query: string): void {
this.filteredModels = fuzzyFilter(this.allModels, query, ({ provider, id }) => `${provider} ${id}`);
this.filteredModels = fuzzyFilter(this.allModels, query, ({ id }) => id);
this.selectedIndex = Math.min(this.selectedIndex, Math.max(0, this.filteredModels.length - 1));
this.updateList();
}