refac
This commit is contained in:
@@ -482,6 +482,9 @@
|
||||
alt={model.name}
|
||||
class="size-5 rounded-full object-cover shrink-0"
|
||||
on:error={(e) => {
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
e.target.src = '/favicon.png';
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -125,6 +125,9 @@
|
||||
};
|
||||
|
||||
const shareHandler = async () => {
|
||||
// LICENSE covers this Open WebUI Community wordmark.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
toast.success($i18n.t('Redirecting you to Open WebUI Community'));
|
||||
|
||||
// remove snapshot from feedbacks
|
||||
|
||||
@@ -214,6 +214,9 @@
|
||||
alt={model.name}
|
||||
class="size-5 rounded-full object-cover shrink-0"
|
||||
on:error={(e) => {
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
e.target.src = '/favicon.png';
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -157,6 +157,9 @@
|
||||
return null;
|
||||
});
|
||||
|
||||
// LICENSE covers this Open WebUI Community wordmark.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
toast.success($i18n.t('Redirecting you to Open WebUI Community'));
|
||||
|
||||
const url = 'https://openwebui.com';
|
||||
@@ -301,6 +304,9 @@
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
<!-- LICENSE covers this Open WebUI browser-title identifier.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<title>
|
||||
{$i18n.t('Functions')} / {$WEBUI_NAME}
|
||||
</title>
|
||||
|
||||
@@ -420,6 +420,9 @@
|
||||
<Switch bind:state={STT_MISTRAL_USE_CHAT_COMPLETIONS} ariaLabelledbyId={labelId} />
|
||||
</AdminSettingRow>
|
||||
{:else if STT_ENGINE === ''}
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<AdminSettingField
|
||||
label={$i18n.t('STT Model')}
|
||||
description={$i18n.t('Open WebUI uses faster-whisper internally.')}
|
||||
@@ -592,6 +595,9 @@
|
||||
</SettingsSelect>
|
||||
</AdminSettingField>
|
||||
{:else if TTS_ENGINE === 'transformers'}
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<AdminSettingField
|
||||
label={$i18n.t('TTS Model')}
|
||||
description={$i18n.t('Open WebUI uses SpeechT5 and CMU Arctic speaker embeddings.')}
|
||||
|
||||
@@ -488,6 +488,9 @@
|
||||
</AdminSettingField>
|
||||
{/if}
|
||||
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('Group Mapping')}
|
||||
description={$i18n.t('Map LDAP groups to Open WebUI groups.')}
|
||||
@@ -693,6 +696,9 @@
|
||||
/>
|
||||
</AdminSettingField>
|
||||
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('Role Mapping')}
|
||||
description={$i18n.t('Map OAuth claims to Open WebUI roles.')}
|
||||
@@ -741,6 +747,9 @@
|
||||
</AdminSettingField>
|
||||
{/if}
|
||||
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('Group Mapping')}
|
||||
description={$i18n.t('Map OAuth claims to Open WebUI groups.')}
|
||||
|
||||
@@ -93,6 +93,9 @@
|
||||
/>
|
||||
</AdminSettingField>
|
||||
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('Jupyter Auth')}
|
||||
description={$i18n.t('Select how Open WebUI authenticates with the Jupyter server.')}
|
||||
@@ -194,6 +197,9 @@
|
||||
/>
|
||||
</AdminSettingField>
|
||||
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<AdminSettingRow
|
||||
label={$i18n.t('Jupyter Auth')}
|
||||
description={$i18n.t('Select how Open WebUI authenticates with the Jupyter server.')}
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
}
|
||||
};
|
||||
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
let profileImageUrl = `${WEBUI_BASE_URL}/favicon.png`;
|
||||
let description = '';
|
||||
|
||||
@@ -93,6 +96,9 @@
|
||||
|
||||
name = '';
|
||||
id = '';
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
profileImageUrl = `${WEBUI_BASE_URL}/favicon.png`;
|
||||
description = '';
|
||||
modelIds = [];
|
||||
|
||||
@@ -642,6 +642,9 @@
|
||||
</div>
|
||||
|
||||
<div class="text-xs text-gray-500">
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
{$i18n.t(
|
||||
'Event names may change as Open WebUI evolves. Use broad patterns like user.* for integrations that should continue across new related events.'
|
||||
)}
|
||||
|
||||
@@ -754,6 +754,9 @@
|
||||
</div>
|
||||
|
||||
<div class="text-xs text-gray-500 mt-1">
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
{$i18n.t(
|
||||
'External vectors must be generated with the same embedding model configured in Open WebUI.'
|
||||
)}
|
||||
|
||||
@@ -141,6 +141,9 @@
|
||||
<div class="min-w-0">
|
||||
<div class="text-gray-600 dark:text-gray-400">{$i18n.t('Help')}</div>
|
||||
<div class="mt-0.5 text-gray-400 dark:text-gray-600">
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
{$i18n.t('Discover how to use Open WebUI and seek support from the community.')}
|
||||
</div>
|
||||
</div>
|
||||
@@ -222,6 +225,9 @@
|
||||
description={$i18n.t('Allow users to share chats with the Open WebUI community.')}
|
||||
let:labelId
|
||||
>
|
||||
<!-- LICENSE covers this Open WebUI Community wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
<Switch bind:state={adminConfig.ENABLE_COMMUNITY_SHARING} ariaLabelledbyId={labelId} />
|
||||
</AdminSettingRow>
|
||||
<AdminSettingRow
|
||||
|
||||
@@ -946,6 +946,9 @@
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
on:error={(e) => {
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
e.target.src = '/favicon.png';
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -355,6 +355,9 @@
|
||||
src={`${WEBUI_API_BASE_URL}/users/${user.id}/profile/image`}
|
||||
alt="user"
|
||||
on:error={(e) => {
|
||||
// LICENSE covers this Open WebUI fallback logo.
|
||||
// Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
// https://docs.openwebui.com/license.
|
||||
e.currentTarget.src = '/favicon.png';
|
||||
}}
|
||||
/>
|
||||
@@ -480,15 +483,24 @@
|
||||
<div class="mt-3 mb-3 pb-1 text-gray-700 dark:text-gray-300">
|
||||
<div class="max-w-3xl text-xs leading-5">
|
||||
<div class="text-gray-900 dark:text-gray-100">
|
||||
<!-- LICENSE covers this Open WebUI wordmark.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
{$i18n.t('Running Open WebUI for a team?')}
|
||||
</div>
|
||||
<div class="mt-2 space-y-2">
|
||||
<p>
|
||||
<!-- LICENSE covers this Open WebUI branding copy.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
{$i18n.t(
|
||||
'You have more than 50 users, which often means this workspace is supporting organizational use. Open WebUI is free to use as-is, with no restrictions or hidden limits, and we want to keep it that way.'
|
||||
)}
|
||||
</p>
|
||||
<p class="text-gray-500 dark:text-gray-400">
|
||||
<!-- LICENSE covers this Open WebUI branding copy.
|
||||
Do not alter, remove, obscure, or replace it except as LICENSE permits:
|
||||
https://docs.openwebui.com/license. -->
|
||||
{$i18n.t(
|
||||
'By supporting the project through sponsorship or an enterprise license, you help us stay independent, ship new features faster, improve stability, and grow Open WebUI for the long haul.'
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user