fix: model command filter
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user