mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 23:05:20 +00:00
fix: model command filter
This commit is contained in:
parent
774c0056bd
commit
f2a09c7149
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue