mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-28 08:09:27 -05:00
refac
This commit is contained in:
1 parent
8b185d8d2c
commit
26f85aa220
4 files changed
+7
-2
No files matched your search
@@ -195,7 +195,7 @@
|
||||
return;
|
||||
}
|
||||
|
||||
if (!key && !['azure_ad', 'microsoft_entra_id'].includes(auth_type)) {
|
||||
if (!key && auth_type === 'bearer') {
|
||||
loading = false;
|
||||
|
||||
toast.error($i18n.t('Key is required'));
|
||||
|
||||
@@ -614,6 +614,7 @@
|
||||
id="ssh-password"
|
||||
bind:value={password}
|
||||
placeholder={$i18n.t('SSH password')}
|
||||
required
|
||||
/>
|
||||
{:else if signIn === 'key'}
|
||||
<textarea
|
||||
|
||||
@@ -468,6 +468,7 @@
|
||||
variant="settings"
|
||||
placeholder={$i18n.t('API Key')}
|
||||
bind:value={realtime.OPENAI_API_KEY}
|
||||
required
|
||||
/>
|
||||
</AdminSettingField>
|
||||
{/if}
|
||||
@@ -625,6 +626,7 @@
|
||||
variant="settings"
|
||||
placeholder={$i18n.t('settings.admin.audio.sttDeepgramApiKey.label')}
|
||||
bind:value={STT_DEEPGRAM_API_KEY}
|
||||
required
|
||||
/>
|
||||
</AdminSettingField>
|
||||
|
||||
@@ -720,6 +722,7 @@
|
||||
variant="settings"
|
||||
placeholder={$i18n.t('settings.admin.audio.sttMistralApiKey.label')}
|
||||
bind:value={STT_MISTRAL_API_KEY}
|
||||
required
|
||||
/>
|
||||
</AdminSettingField>
|
||||
</div>
|
||||
@@ -932,6 +935,7 @@
|
||||
variant="settings"
|
||||
placeholder={$i18n.t('settings.admin.audio.ttsMistralApiKey.label')}
|
||||
bind:value={TTS_MISTRAL_API_KEY}
|
||||
required
|
||||
/>
|
||||
</AdminSettingField>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
export let value: string = '';
|
||||
export let placeholder = '';
|
||||
export let type = 'text';
|
||||
export let required = true;
|
||||
export let required = false;
|
||||
export let readOnly = false;
|
||||
export let variant: 'plain' | 'settings' = 'plain';
|
||||
export let outerClassName = 'flex flex-1';
|
||||
|
||||
Reference in new issue
Block a user