From 5b8f39bc2ea6ec0b17375d3d300137cc8a809384 Mon Sep 17 00:00:00 2001 From: Haiping Chen Date: Mon, 12 Feb 2024 15:48:06 -0600 Subject: [PATCH] fluid image in chatbox --- src/routes/VerticalLayout/Footer.svelte | 2 +- .../chat/[agentId]/[conversationId]/chat-box.svelte | 2 +- src/routes/page/agent/router/routing-flow.svelte | 8 ++++++-- src/routes/page/task/+page.svelte | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/routes/VerticalLayout/Footer.svelte b/src/routes/VerticalLayout/Footer.svelte index d63e0ef4..2b541a72 100644 --- a/src/routes/VerticalLayout/Footer.svelte +++ b/src/routes/VerticalLayout/Footer.svelte @@ -12,7 +12,7 @@
- Design & Develop by open source community + Design & Developed by open source community
diff --git a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte index 5705245f..f918bf49 100644 --- a/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/chat-box.svelte @@ -449,7 +449,7 @@ {#if message.data && message.data.includes('data:image/png;base64,')}
- +
{/if} diff --git a/src/routes/page/agent/router/routing-flow.svelte b/src/routes/page/agent/router/routing-flow.svelte index c69f11ee..13cf2578 100644 --- a/src/routes/page/agent/router/routing-flow.svelte +++ b/src/routes/page/agent/router/routing-flow.svelte @@ -67,7 +67,9 @@ routers.forEach(router => { let profiles = []; const planner = getPlannerName(router); - const chatTestLinkHtml = ``; + const chatTestLinkHtml = router.is_public ? + `` : + ''; let html = `${router.name} ${chatTestLinkHtml}Routing with ${planner}`; if (router.profiles.length > 0) { profiles = router.profiles; @@ -94,7 +96,9 @@ posX += nodeSpaceX; agents.forEach(agent => { let profiles = []; - const chatTestLinkHtml = ``; + const chatTestLinkHtml = agent.is_public ? + `` : + ''; let html = `${agent.name}${chatTestLinkHtml}`; if (agent.type == "static") { const taskLinkHtml = ``; diff --git a/src/routes/page/task/+page.svelte b/src/routes/page/task/+page.svelte index b11ac7c0..6275dc7a 100644 --- a/src/routes/page/task/+page.svelte +++ b/src/routes/page/task/+page.svelte @@ -217,7 +217,7 @@ {task.enabled ? "Enabled" : "Disabled"}