From 1b4f1794c9e3877792814322a6c305d8b2cff166 Mon Sep 17 00:00:00 2001 From: Haiping Chen <101423@smsassist.com> Date: Wed, 28 Feb 2024 10:19:28 -0600 Subject: [PATCH] improved the stream log format --- .../contentLogs/content-log-element.svelte | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/routes/chat/[agentId]/[conversationId]/contentLogs/content-log-element.svelte b/src/routes/chat/[agentId]/[conversationId]/contentLogs/content-log-element.svelte index 7e9ba73d..08e2395f 100644 --- a/src/routes/chat/[agentId]/[conversationId]/contentLogs/content-log-element.svelte +++ b/src/routes/chat/[agentId]/[conversationId]/contentLogs/content-log-element.svelte @@ -33,20 +33,24 @@ } -
-
-
{`[${data?.name?.length > 0 ? data?.name + ' ' : ''}${utcToLocal(data?.created_at, 'hh:mm:ss.SSS A, MMM DD YYYY')}]`}
- {#if data.message_id} -
{`[MessageId: ${data.message_id}]`}
- {/if} +
+
+
+ {`${data?.name?.length > 0 ? data?.name + ' ' : ''}`} + {`${utcToLocal(data?.created_at, 'hh:mm:ss.SSS A, MMM DD YYYY')} `} +
-
-
+
{@html replaceNewLine(data?.content)}
+ {#if includedSources.includes(data.source)} - {/if} + + {#if data.message_id} +
{`MessageId: ${data.message_id}`}
+ {/if}
\ No newline at end of file