mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 05:15:18 +00:00
enh: azure openai toggle
This commit is contained in:
parent
1588f42fe7
commit
5bdd334b74
1 changed files with 23 additions and 0 deletions
|
|
@ -349,6 +349,29 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{#if !ollama && !direct}
|
||||||
|
<div class="flex flex-row justify-between items-center w-full mt-2">
|
||||||
|
<label
|
||||||
|
for="prefix-id-input"
|
||||||
|
class={`mb-0.5 text-xs text-gray-500
|
||||||
|
${($settings?.highContrastMode ?? false) ? 'text-gray-800 dark:text-gray-100' : ''}`}
|
||||||
|
>{$i18n.t('Provider')}</label
|
||||||
|
>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<button
|
||||||
|
on:click={() => {
|
||||||
|
azure = !azure;
|
||||||
|
}}
|
||||||
|
type="button"
|
||||||
|
class=" text-xs text-gray-700 dark:text-gray-300"
|
||||||
|
>
|
||||||
|
{azure ? $i18n.t('Azure OpenAI') : $i18n.t('OpenAI')}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if azure}
|
{#if azure}
|
||||||
<div class="flex gap-2 mt-2">
|
<div class="flex gap-2 mt-2">
|
||||||
<div class="flex flex-col w-full">
|
<div class="flex flex-col w-full">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue