From 574da93e1ae1fb723702df14a0a5de8abf35e596 Mon Sep 17 00:00:00 2001 From: sylarchen1389 Date: Thu, 20 Nov 2025 09:01:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=B1=8F=E8=94=BD=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E9=83=A8=E5=88=86=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=90=AF=E7=94=A8=E8=AE=B0=E5=BF=86=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/open_webui/models/users.py | 1 + src/lib/components/chat/Settings/Account.svelte | 6 ++++-- src/lib/components/chat/SettingsModal.svelte | 3 +++ src/lib/components/layout/Overlay/AccountPending.svelte | 3 +++ src/lib/components/layout/Sidebar/SearchInput.svelte | 3 +++ 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/backend/open_webui/models/users.py b/backend/open_webui/models/users.py index 05000744dd..8338d17500 100644 --- a/backend/open_webui/models/users.py +++ b/backend/open_webui/models/users.py @@ -168,6 +168,7 @@ class UsersTable: "email": email, "role": role, "profile_image_url": profile_image_url, + "settings": {"ui": {"memory": True}}, "last_active_at": int(time.time()), "created_at": int(time.time()), "updated_at": int(time.time()), diff --git a/src/lib/components/chat/Settings/Account.svelte b/src/lib/components/chat/Settings/Account.svelte index 510910e365..e71af97baf 100644 --- a/src/lib/components/chat/Settings/Account.svelte +++ b/src/lib/components/chat/Settings/Account.svelte @@ -241,8 +241,10 @@ {/if} - - {#if ($config?.features?.enable_api_key ?? true) || $user?.role === 'admin'} + + + {#if $user?.role === 'admin'} +
{$i18n.t('API keys')}
+ {/if} {:else if tabId === 'audio'}