feat: duplicate tag name prevention

This commit is contained in:
Timothy J. Baek
2023-12-03 22:21:17 -08:00
parent ab5e7abffd
commit 6df1b197aa
2 changed files with 23 additions and 3 deletions
@@ -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;