From 330a3535e6d7ab1132c66e5f93caec48094958c6 Mon Sep 17 00:00:00 2001 From: Michael Poluektov Date: Tue, 12 Nov 2024 16:42:17 +0000 Subject: [PATCH 1/2] fix: add HTML rendering to citations back --- src/lib/components/chat/Messages/CitationsModal.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/CitationsModal.svelte b/src/lib/components/chat/Messages/CitationsModal.svelte index bb48a3f53..078c963db 100644 --- a/src/lib/components/chat/Messages/CitationsModal.svelte +++ b/src/lib/components/chat/Messages/CitationsModal.svelte @@ -149,7 +149,11 @@ {$i18n.t('Content')}
-							{document.document}
+							{#if document.metadata?.html}
+								{@html document.document}
+							{:else}
+								{document.document}
+							{/if}
 						
From b1d31d9b8ea51a1ae82d0b562422762de649b7a8 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 12 Nov 2024 14:00:32 -0800 Subject: [PATCH 2/2] refac --- src/lib/components/chat/Messages/CitationsModal.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages/CitationsModal.svelte b/src/lib/components/chat/Messages/CitationsModal.svelte index 078c963db..866cc8dfd 100644 --- a/src/lib/components/chat/Messages/CitationsModal.svelte +++ b/src/lib/components/chat/Messages/CitationsModal.svelte @@ -1,4 +1,6 @@