mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 13:55:19 +00:00
⭐ Show only models that are not be hidden
This commit is contained in:
parent
f21e9dbd9a
commit
8f49429228
1 changed files with 4 additions and 2 deletions
|
|
@ -21,8 +21,10 @@
|
||||||
let filteredModels = [];
|
let filteredModels = [];
|
||||||
|
|
||||||
$: filteredModels = $models
|
$: filteredModels = $models
|
||||||
.filter((p) =>
|
.filter(
|
||||||
p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '')
|
(p) =>
|
||||||
|
p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '') &&
|
||||||
|
p?.info?.meta?.hidden
|
||||||
)
|
)
|
||||||
.sort((a, b) => a.name.localeCompare(b.name));
|
.sort((a, b) => a.name.localeCompare(b.name));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue