use only model id for fuzzy filtering in model selector (#151)
This commit is contained in:
committed by
GitHub
parent
33a2bcf203
commit
d56a0463df
@@ -115,7 +115,7 @@ export class ModelSelectorComponent extends Container {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private filterModels(query: string): void {
|
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.selectedIndex = Math.min(this.selectedIndex, Math.max(0, this.filteredModels.length - 1));
|
||||||
this.updateList();
|
this.updateList();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user