diff --git a/.env b/.env index 8d85c059..c28ce40e 100644 --- a/.env +++ b/.env @@ -4,6 +4,7 @@ PUBLIC_LIVECHAT_HOST=https://victorious-moss-007e11310.4.azurestaticapps.net/ PUBLIC_LIVECHAT_ENTRY_ICON=images/users/bot.png PUBLIC_LIVECHAT_VOICE_ENABLED=false PUBLIC_LIVECHAT_FILES_ENABLED=false +PUBLIC_LIVECHAT_ENABLE_TRAINING=false PUBLIC_HOME_IMAGE=images/megamenu-img.png PUBLIC_HOME_SLOGAN=A central workspace for building, testing and evaluating your AI Agents. PUBLIC_LOGO_URL=images/logo.png @@ -17,4 +18,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_AUTH_ENABLE_FIND_PWD=true \ No newline at end of file diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index a9c928c3..c2221b40 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -36,6 +36,7 @@ PUBLIC_LIVECHAT_ENTRY_ICON, PUBLIC_LIVECHAT_VOICE_ENABLED, PUBLIC_LIVECHAT_FILES_ENABLED, + PUBLIC_LIVECHAT_ENABLE_TRAINING } from '$env/static/public'; import { BOT_SENDERS, LERNER_ID, TEXT_EDITORS, TRAINING_MODE, USER_SENDERS } from '$lib/helpers/constants'; import { signalr } from '$lib/services/signalr-service.js'; @@ -1497,35 +1498,37 @@ id={message?.message_id} text={message?.rich_content?.message?.text || message?.text} /> - {#if message?.function} + {#if PUBLIC_LIVECHAT_ENABLE_TRAINING === 'true'} + {#if message?.function} +