+
+
+
+ {
+ info.meta.tags = info.meta.tags.filter((tag) => tag.name !== tagName);
+ }}
+ addTag={(tagName) => {
+ console.log(tagName);
+ if (!(info?.meta?.tags ?? null)) {
+ info.meta.tags = [{ name: tagName }];
+ } else {
+ info.meta.tags = [...info.meta.tags, { name: tagName }];
+ }
+ }}
+ />
+
+
{$i18n.t('JSON Preview')}
diff --git a/src/routes/(app)/workspace/models/edit/+page.svelte b/src/routes/(app)/workspace/models/edit/+page.svelte
index 558ad3663..169d439fa 100644
--- a/src/routes/(app)/workspace/models/edit/+page.svelte
+++ b/src/routes/(app)/workspace/models/edit/+page.svelte
@@ -13,6 +13,7 @@
import AdvancedParams from '$lib/components/chat/Settings/Advanced/AdvancedParams.svelte';
import { getModels } from '$lib/apis';
import Checkbox from '$lib/components/common/Checkbox.svelte';
+ import Tags from '$lib/components/common/Tags.svelte';
const i18n = getContext('i18n');
@@ -44,7 +45,8 @@
meta: {
profile_image_url: '/favicon.png',
description: '',
- suggestion_prompts: null
+ suggestion_prompts: null,
+ tags: []
},
params: {
system: ''
@@ -223,26 +225,26 @@
-
+
-
{$i18n.t('Name')}*
+
{$i18n.t('Name')}*
-
{$i18n.t('Model ID')}*
+
{$i18n.t('Model ID')}*
{#if model.preset}
-
-
{$i18n.t('Base Model (From)')}
+
+
{$i18n.t('Base Model (From)')}