diff --git a/src/lib/components/workspace/Functions.svelte b/src/lib/components/workspace/Functions.svelte index 1d630e5a9..24000d167 100644 --- a/src/lib/components/workspace/Functions.svelte +++ b/src/lib/components/workspace/Functions.svelte @@ -184,7 +184,7 @@ -
+
{$i18n.t('Functions')} diff --git a/src/lib/components/workspace/Knowledge.svelte b/src/lib/components/workspace/Knowledge.svelte index cd39ec7d6..45da712b1 100644 --- a/src/lib/components/workspace/Knowledge.svelte +++ b/src/lib/components/workspace/Knowledge.svelte @@ -75,7 +75,7 @@ }} /> -
+
{$i18n.t('Knowledge')} diff --git a/src/lib/components/workspace/Models.svelte b/src/lib/components/workspace/Models.svelte index 19c08c0c8..e6f5d9fda 100644 --- a/src/lib/components/workspace/Models.svelte +++ b/src/lib/components/workspace/Models.svelte @@ -306,7 +306,7 @@ }} /> -
+
{$i18n.t('Models')} diff --git a/src/lib/components/workspace/Models/Capabilities.svelte b/src/lib/components/workspace/Models/Capabilities.svelte index 2a07f401d..f5325d5f3 100644 --- a/src/lib/components/workspace/Models/Capabilities.svelte +++ b/src/lib/components/workspace/Models/Capabilities.svelte @@ -23,9 +23,9 @@
{$i18n.t('Capabilities')}
-
+
{#each Object.keys(capabilities) as capability} -
+
{ diff --git a/src/lib/components/workspace/Models/ModelEditor.svelte b/src/lib/components/workspace/Models/ModelEditor.svelte index b79942ce9..884117e34 100644 --- a/src/lib/components/workspace/Models/ModelEditor.svelte +++ b/src/lib/components/workspace/Models/ModelEditor.svelte @@ -149,19 +149,6 @@ await tick(); id = model.id; - info = { - ...info, - ...JSON.parse( - JSON.stringify( - model?.info - ? model?.info - : { - id: model.id, - name: model.name - } - ) - ) - }; if (model.info.base_model_id) { const base_model = $models @@ -214,7 +201,16 @@ info = { ...info, - ...model.info + ...JSON.parse( + JSON.stringify( + model?.info + ? model?.info + : { + id: model.id, + name: model.name + } + ) + ) }; console.log(model); @@ -290,42 +286,17 @@ }} /> - - {#if !edit || model}
{ submitHandler(); }} > -
+
-
-
-
{$i18n.t('Name')}*
- -
- -
-
- -
-
{$i18n.t('Model ID')}*
- -
- -
-
-
- - {#if !edit || model.preset} -
-
{$i18n.t('Base Model (From)')}
- -
- -
-
- {/if} - -
-
-
{$i18n.t('Description')}
- - -
- - {#if info.meta.description !== null} -