mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 14:55:23 +00:00
revert
This commit is contained in:
parent
2a98ba0ff8
commit
89e59d0103
2 changed files with 7 additions and 9 deletions
|
|
@ -312,14 +312,12 @@
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
if (items) {
|
if (items) {
|
||||||
tags = Array.from(
|
tags = items
|
||||||
new Set(
|
.filter((item) => !(item.model?.info?.meta?.hidden ?? false))
|
||||||
items
|
.flatMap((item) => item.model?.tags ?? [])
|
||||||
.filter((item) => !(item.model?.info?.meta?.hidden ?? false))
|
.map((tag) => tag.name);
|
||||||
.flatMap((item) => item.model?.tags ?? [])
|
// Remove duplicates and sort
|
||||||
.map((tag) => tag.name.toLowerCase())
|
tags = Array.from(new Set(tags)).sort((a, b) => a.localeCompare(b));
|
||||||
)
|
|
||||||
).sort((a, b) => a.localeCompare(b));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@
|
||||||
tags = models
|
tags = models
|
||||||
.filter((model) => !(model?.meta?.hidden ?? false))
|
.filter((model) => !(model?.meta?.hidden ?? false))
|
||||||
.flatMap((model) => model?.meta?.tags ?? [])
|
.flatMap((model) => model?.meta?.tags ?? [])
|
||||||
.map((tag) => tag.name.toLowerCase());
|
.map((tag) => tag.name);
|
||||||
|
|
||||||
// Remove duplicates and sort
|
// Remove duplicates and sort
|
||||||
tags = Array.from(new Set(tags)).sort((a, b) => a.localeCompare(b));
|
tags = Array.from(new Set(tags)).sort((a, b) => a.localeCompare(b));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue