mirror of
https://github.com/open-webui/open-webui
synced 2024-11-25 05:18:15 +00:00
⭐ Show only models that are not be hidden
This commit is contained in:
parent
f21e9dbd9a
commit
8f49429228
@ -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 New Issue
Block a user