diff --git a/src/routes/(app)/modelfiles/create/+page.svelte b/src/routes/(app)/modelfiles/create/+page.svelte
index 7b8d520c9..0db85fbee 100644
--- a/src/routes/(app)/modelfiles/create/+page.svelte
+++ b/src/routes/(app)/modelfiles/create/+page.svelte
@@ -78,15 +78,15 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
];
let categories = {
- Character: false,
- Assistant: false,
- Writing: false,
- Productivity: false,
- Programming: false,
- 'Data Analysis': false,
- Lifestyle: false,
- Education: false,
- Business: false
+ character: false,
+ assistant: false,
+ writing: false,
+ productivity: false,
+ programming: false,
+ 'data analysis': false,
+ lifestyle: false,
+ education: false,
+ business: false
};
const saveModelfile = async (modelfile) => {
@@ -513,7 +513,9 @@ SYSTEM """${system}"""`.replace(/^\s*\n/gm, '');
class="p-1 px-3 text-xs flex rounded transition"
type="button"
on:click={() => {
- suggestions = [...suggestions, { content: '' }];
+ if (suggestions.length === 0 || suggestions.at(-1).content !== '') {
+ suggestions = [...suggestions, { content: '' }];
+ }
}}
>