Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add flag #252

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
PUBLIC_SERVICE_URL=https://botsharp.azurewebsites.net
PUBLIC_LIVECHAT_HOST=https://victorious-moss-007e11310.4.azurestaticapps.net/
PUBLIC_LIVECHAT_ENTRY_ICON=images/users/bot.png
PUBLIC_DEBUG_MODE=false
PUBLIC_LIVECHAT_VOICE_ENABLED=false
PUBLIC_LIVECHAT_SPEAKER_ENABLED=false
PUBLIC_LIVECHAT_FILES_ENABLED=false
PUBLIC_LIVECHAT_ENABLE_TRAINING=false
PUBLIC_HOME_IMAGE=images/megamenu-img.png
Expand All @@ -18,5 +20,4 @@ PUBLIC_COMPANY_WEBSITE=https://scisharp.github.io/SciSharp/
PUBLIC_PLUGIN_DEFAULT_ICON=https://avatars.githubusercontent.com/u/44989469?s=200&v=4
PUBLIC_ALLOW_SIGNUP=true
PUBLIC_AUTH_ENABLE_SSO=true
PUBLIC_AUTH_ENABLE_FIND_PWD=true
PUBLIC_DEBUG_MODE=false
PUBLIC_AUTH_ENABLE_FIND_PWD=true
12 changes: 8 additions & 4 deletions src/routes/chat/[agentId]/[conversationId]/chat-box.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import {
PUBLIC_LIVECHAT_ENTRY_ICON,
PUBLIC_LIVECHAT_VOICE_ENABLED,
PUBLIC_LIVECHAT_SPEAKER_ENABLED,
PUBLIC_LIVECHAT_FILES_ENABLED,
PUBLIC_LIVECHAT_ENABLE_TRAINING,
PUBLIC_DEBUG_MODE
Expand Down Expand Up @@ -1629,10 +1630,12 @@
<RcMessage message={message} />
{#if message?.message_id === lastBotMsg?.message_id && message?.uuid === lastBotMsg?.uuid}
<div style="display: flex; gap: 10px;">
<AudioSpeaker
id={message?.message_id}
text={message?.rich_content?.message?.text || message?.text}
/>
{#if PUBLIC_LIVECHAT_SPEAKER_ENABLED === 'true'}
<AudioSpeaker
id={message?.message_id}
text={message?.rich_content?.message?.text || message?.text}
/>
{/if}
{#if PUBLIC_LIVECHAT_ENABLE_TRAINING === 'true'}
{#if message?.function}
<div class="line-align-center" style="font-size: 17px;">
Expand All @@ -1655,6 +1658,7 @@
<!-- svelte-ignore a11y-no-static-element-interactions -->
<div
class="clickable"
style="height: 80%;"
data-bs-toggle="tooltip"
data-bs-placement="top"
title="Edit"
Expand Down
Loading