Skip to content

Commit

Permalink
add agent auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Jicheng Lu committed Nov 15, 2024
1 parent 5ad4bf3 commit 250599e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/lib/helpers/types/agentTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
* @property {AgentWelcomeInfo} welcome_info - Welcome information.
* @property {boolean} editable
* @property {boolean} chatable
* @property {boolean} trainable
* @property {boolean} evaluable
*/


Expand Down
1 change: 1 addition & 0 deletions src/lib/scss/custom/pages/_roles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@

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

input[type='checkbox'] {
outline: none !important;
Expand Down
1 change: 1 addition & 0 deletions src/lib/scss/custom/pages/_users.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@

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

input[type='checkbox'] {
outline: none !important;
Expand Down
2 changes: 1 addition & 1 deletion src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@
text={message?.rich_content?.message?.text || message?.text}
/>
{/if}
{#if PUBLIC_LIVECHAT_ENABLE_TRAINING === 'true'}
{#if PUBLIC_LIVECHAT_ENABLE_TRAINING === 'true' && agent?.trainable}
{#if message?.function}
<div class="line-align-center" style="font-size: 17px;">
<!-- svelte-ignore a11y-click-events-have-key-events -->
Expand Down
4 changes: 2 additions & 2 deletions src/routes/page/roles/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@
</script>
<HeadTitle title="{$_('User List')}" />
<Breadcrumb title="{$_('Management')}" pagetitle="{$_('Users')}" />
<HeadTitle title="{$_('Role List')}" />
<Breadcrumb title="{$_('Management')}" pagetitle="{$_('Roles')}" />
<LoadingToComplete isLoading={isLoading} isComplete={isComplete} isError={isError} successText={successText} errorText={errorText} />
Expand Down

0 comments on commit 250599e

Please sign in to comment.