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

This commit is contained in:
Markus Ylisiurunen 2025-12-09 00:35:31 +02:00 committed by GitHub
parent 33a2bcf203
commit d56a0463df
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}