mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +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 = [];
|
||||
|
||||
$: filteredModels = $models
|
||||
.filter((p) =>
|
||||
p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '')
|
||||
.filter(
|
||||
(p) =>
|
||||
p.name.toLowerCase().includes(prompt.toLowerCase().split(' ')?.at(0)?.substring(1) ?? '') &&
|
||||
p?.info?.meta?.hidden
|
||||
)
|
||||
.sort((a, b) => a.name.localeCompare(b.name));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user