feat: 屏蔽选项中的部分功能,默认启用记忆功能

This commit is contained in:
sylarchen1389 2025-11-20 09:01:49 +08:00
parent 4f6de98909
commit 574da93e1a
5 changed files with 14 additions and 2 deletions

View file

@ -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()),

View file

@ -241,8 +241,10 @@
<UpdatePassword />
</div>
{/if}
{#if ($config?.features?.enable_api_key ?? true) || $user?.role === 'admin'}
<!-- ai-friend 屏蔽api显示 -->
{#if $user?.role === 'admin'}
<!-- {#if ($config?.features?.enable_api_key ?? true) || $user?.role === 'admin'} -->
<div class="flex justify-between items-center text-sm mt-2">
<div class=" font-medium">{$i18n.t('API keys')}</div>
<button

View file

@ -713,6 +713,8 @@
</button>
{/if}
{:else if tabId === 'personalization'}
<!-- ai-friend 屏蔽个性化选项 -->
{#if $user?.role === 'admin'}
<button
role="tab"
aria-controls="tab-personalization"
@ -736,6 +738,7 @@
</div>
<div class=" self-center">{$i18n.t('Personalization')}</div>
</button>
{/if}
{:else if tabId === 'audio'}
<button
role="tab"

View file

@ -53,11 +53,14 @@
{/if}
</div>
<!-- ai-friend 屏蔽管理员账号显示 -->
{#if false}
{#if adminDetails}
<div class="mt-4 text-sm font-medium text-center">
<div>{$i18n.t('Admin')}: {adminDetails.name} ({adminDetails.email})</div>
</div>
{/if}
{/if}
<div class=" mt-6 mx-auto relative group w-fit">
<button

View file

@ -295,6 +295,8 @@
{/if}
</div>
<!-- ai-friend 暂时不支持option -->
{#if false}
{#if focused && (filteredOptions.length > 0 || filteredItems.length > 0)}
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
@ -385,4 +387,5 @@
</div>
</div>
{/if}
{/if}
</div>