We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f623c6 commit 07d9378Copy full SHA for 07d9378
1 file changed
tools/ui/src/lib/stores/models.svelte.ts
@@ -633,7 +633,12 @@ class ModelsStore {
633
}
634
635
findModelByName(modelName: string): ModelOption | null {
636
- return this.models.find((model) => model.model === modelName) ?? null;
+ return (
637
+ this.models.find(
638
+ (model) =>
639
+ model.model === modelName || model.id === modelName || model.aliases?.includes(modelName)
640
+ ) ?? null
641
+ );
642
643
644
findModelById(modelId: string): ModelOption | null {
0 commit comments