From 1cef48730e0c359e717cfced80da46e45b048e82 Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Sat, 1 Jun 2024 20:47:04 +0100 Subject: [PATCH] fix: show both message contents and error message --- src/lib/components/chat/Messages/ResponseMessage.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index c7890f1c5..571ac924e 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -453,7 +453,9 @@
{#if message.content === '' && !message.error} - {:else if !message.error} + {:else if message.content && message.error !== true} + + {#each tokens as token, tokenIdx} {#if token.type === 'code'}