fix: model command filter

This commit is contained in:
Timothy Jaeryang Baek 2025-09-09 19:01:39 +04:00
parent 774c0056bd
commit f2a09c7149

View file

@ -29,12 +29,12 @@
}), }),
{ {
keys: ['value', 'tags', 'modelName'], keys: ['value', 'tags', 'modelName'],
threshold: 0.3 threshold: 0.5
} }
); );
$: filteredItems = command.slice(1) $: filteredItems = command.slice(1)
? fuse.search(command).map((e) => { ? fuse.search(command.slice(1)).map((e) => {
return e.item; return e.item;
}) })
: $models.filter((model) => !model?.info?.meta?.hidden); : $models.filter((model) => !model?.info?.meta?.hidden);