This commit is contained in:
Timothy Jaeryang Baek 2025-03-04 18:08:43 -08:00
parent 3b74431ea3
commit 6c77e6fdb3

View File

@ -234,8 +234,10 @@
ollamaVersion = await getOllamaVersion(localStorage.token).catch((error) => false);
if (items) {
tags = items.flatMap((item) => item.model?.info?.meta?.tags ?? []);
tags = [...new Set(tags)].map((tag) => tag.name).sort();
tags = items.flatMap((item) => item.model?.info?.meta?.tags ?? []).map((tag) => tag.name);
// Remove duplicates and sort
tags = Array.from(new Set(tags)).sort((a, b) => a.localeCompare(b));
}
});