We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b74431 commit 6c77e6fCopy full SHA for 6c77e6f
src/lib/components/chat/ModelSelector/Selector.svelte
@@ -234,8 +234,10 @@
234
ollamaVersion = await getOllamaVersion(localStorage.token).catch((error) => false);
235
236
if (items) {
237
- tags = items.flatMap((item) => item.model?.info?.meta?.tags ?? []);
238
- tags = [...new Set(tags)].map((tag) => tag.name).sort();
+ tags = items.flatMap((item) => item.model?.info?.meta?.tags ?? []).map((tag) => tag.name);
+
239
+ // Remove duplicates and sort
240
+ tags = Array.from(new Set(tags)).sort((a, b) => a.localeCompare(b));
241
}
242
});
243
0 commit comments