diff --git a/src/lib/components/AddConnectionModal.svelte b/src/lib/components/AddConnectionModal.svelte index f998cced0..e4f02e200 100644 --- a/src/lib/components/AddConnectionModal.svelte +++ b/src/lib/components/AddConnectionModal.svelte @@ -3,7 +3,7 @@ import { getContext, onMount } from 'svelte'; const i18n = getContext('i18n'); - import { models } from '$lib/stores'; + import { settings } from '$lib/stores'; import { verifyOpenAIConnection } from '$lib/apis/openai'; import { verifyOllamaConnection } from '$lib/apis/ollama'; @@ -258,11 +258,17 @@
-
{$i18n.t('URL')}
+
+ - +
-
{$i18n.t('Key')}
+
+ {$i18n.t('Key')} +
-
{$i18n.t('Prefix ID')}
+
-
{$i18n.t('API Version')}
+
-
{$i18n.t('Tags')}
+
+ {$i18n.t('Tags')} +
-
{$i18n.t('Model IDs')}
+
+ {$i18n.t('Model IDs')} +
{#if modelIds.length > 0} -
+
    {#each modelIds as modelId, modelIdx} -
    +
  • {modelId}
    -
  • + {/each} -
+ {:else} -
+
{#if ollama} {$i18n.t('Leave empty to include all models from "{{url}}/api/tags" endpoint', { url: url @@ -429,17 +473,22 @@
+