enh: system prompt user permission

This commit is contained in:
Timothy Jaeryang Baek
2025-06-16 15:12:32 +04:00
parent 1af128fb24
commit 99e18d49dc
6 changed files with 21 additions and 2 deletions

View File

@@ -65,6 +65,7 @@
},
chat: {
controls: true,
system_prompt: true,
file_upload: true,
delete: true,
edit: true,

View File

@@ -263,6 +263,14 @@
<Switch bind:state={permissions.chat.controls} />
</div>
<div class=" flex w-full justify-between my-2 pr-2">
<div class=" self-center text-xs font-medium">
{$i18n.t('Allow Chat System Prompt')}
</div>
<Switch bind:state={permissions.chat.system_prompt} />
</div>
<div class=" flex w-full justify-between my-2 pr-2">
<div class=" self-center text-xs font-medium">
{$i18n.t('Allow Chat Delete')}