feat: duplicate tag name prevention

This commit is contained in:
Timothy J. Baek committed 2023-12-03 22:21:17 -08:00
1 parent ab5e7abffd
commit 6df1b197aa
2 files changed
+23 -3

No files matched your search

@@ -60,7 +60,14 @@
title = modelfile.title;
desc = modelfile.desc;
content = modelfile.content;
suggestions = modelfile.suggestionPrompts;
suggestions =
modelfile.suggestionPrompts.length != 0
? modelfile.suggestionPrompts
: [
{
content: ''
}
];
for (const category of modelfile.categories) {
categories[category.toLowerCase()] = true;