diff --git a/src/lib/components/admin/Settings/Audio.svelte b/src/lib/components/admin/Settings/Audio.svelte index 00c8417fa..a7a030027 100644 --- a/src/lib/components/admin/Settings/Audio.svelte +++ b/src/lib/components/admin/Settings/Audio.svelte @@ -181,7 +181,7 @@
-
+
{#if ENABLE_OPENAI_API !== null && ENABLE_OLLAMA_API !== null} -
+
{$i18n.t('OpenAI API')}
-
- { - updateOpenAIConfig(localStorage.token, ENABLE_OPENAI_API); - }} - /> +
+
+ { + updateOpenAIConfig(localStorage.token, ENABLE_OPENAI_API); + }} + /> +
{#if ENABLE_OPENAI_API} -
- {#each OPENAI_API_BASE_URLS as url, idx} -
-
- +
- {#if pipelineUrls[url]} -
- +
+
+
{$i18n.t('Manage OpenAI API Connections')}
+ + +
+ +
+ {#each OPENAI_API_BASE_URLS as url, idx} +
+ +
+
+ + + {#if pipelineUrls[url]} +
+ + + + + + + +
+ {/if} +
+ + +
+
+ +
+ +
- {/if} -
+ + - -
- {#if idx === 0} - - {:else} - - {/if} -
+ + + --> -
- - - + + + + + +
-
-
- {$i18n.t('WebUI will make requests to')} - '{url}/models' -
- {/each} + {/each} +
{/if}
-
+
-
-
+
+
{$i18n.t('Ollama API')}
@@ -335,97 +371,104 @@ />
+ {#if ENABLE_OLLAMA_API} -
-
- {#each OLLAMA_BASE_URLS as url, idx} -
- + +
+
+
{$i18n.t('Manage Ollama API Connections')}
+ + - {:else} - - {/if} -
- -
- - - -
-
- {/each} + +
-
-
- {$i18n.t('Trouble accessing Ollama?')} - - {$i18n.t('Click here for help.')} - +
+
+ {#each OLLAMA_BASE_URLS as url, idx} +
+ + +
+ + + + + + + +
+
+ {/each} +
+
+ +
+ {$i18n.t('Trouble accessing Ollama?')} + + {$i18n.t('Click here for help.')} + +
{/if}
diff --git a/src/lib/components/admin/Settings/Images.svelte b/src/lib/components/admin/Settings/Images.svelte index 4863577b2..c76e192bf 100644 --- a/src/lib/components/admin/Settings/Images.svelte +++ b/src/lib/components/admin/Settings/Images.svelte @@ -566,7 +566,7 @@
-