Skip to content

Commit 250599e

Browse files
author
Jicheng Lu
committed
add agent auth
1 parent 5ad4bf3 commit 250599e

File tree

5 files changed

+7
-3
lines changed

5 files changed

+7
-3
lines changed

src/lib/helpers/types/agentTypes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
* @property {AgentWelcomeInfo} welcome_info - Welcome information.
6161
* @property {boolean} editable
6262
* @property {boolean} chatable
63+
* @property {boolean} trainable
64+
* @property {boolean} evaluable
6365
*/
6466

6567

src/lib/scss/custom/pages/_roles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@
8484

8585
.action-col {
8686
padding: 3px 0px;
87+
border-bottom: 1px dotted var(--bs-primary);
8788

8889
input[type='checkbox'] {
8990
outline: none !important;

src/lib/scss/custom/pages/_users.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292

9393
.action-col {
9494
padding: 3px 0px;
95+
border-bottom: 1px dotted var(--bs-primary);
9596

9697
input[type='checkbox'] {
9798
outline: none !important;

src/routes/chat/[agentId]/[conversationId]/chat-box.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@
16471647
text={message?.rich_content?.message?.text || message?.text}
16481648
/>
16491649
{/if}
1650-
{#if PUBLIC_LIVECHAT_ENABLE_TRAINING === 'true'}
1650+
{#if PUBLIC_LIVECHAT_ENABLE_TRAINING === 'true' && agent?.trainable}
16511651
{#if message?.function}
16521652
<div class="line-align-center" style="font-size: 17px;">
16531653
<!-- svelte-ignore a11y-click-events-have-key-events -->

src/routes/page/roles/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@
145145
</script>
146146
147147
148-
<HeadTitle title="{$_('User List')}" />
149-
<Breadcrumb title="{$_('Management')}" pagetitle="{$_('Users')}" />
148+
<HeadTitle title="{$_('Role List')}" />
149+
<Breadcrumb title="{$_('Management')}" pagetitle="{$_('Roles')}" />
150150
<LoadingToComplete isLoading={isLoading} isComplete={isComplete} isError={isError} successText={successText} errorText={errorText} />
151151
152152

0 commit comments

Comments
 (0)