();
+ for (const m of $models) {
+ for (const t of m?.info?.meta?.tags ?? []) {
+ const name = typeof t === 'string' ? t : t?.name;
+ if (name) tagSet.add(name);
+ }
+ }
+ suggestionTags = [...tagSet].sort().map((t) => ({ name: t }));
+ }
+ }
+
// Fetch admin-configured default model metadata so the editor
// reflects the actual defaults rather than hardcoded values
const modelsConfig = await getModelsDefaults(localStorage.token).catch(() => null);
@@ -651,6 +673,7 @@
{
const tagName = e.detail;
info.meta.tags = info.meta.tags.filter((tag) => tag.name !== tagName);