Przeglądaj źródła

fix: add HTML rendering to citations back

Michael Poluektov 6 miesięcy temu
rodzic
commit
330a3535e6

+ 5 - 1
src/lib/components/chat/Messages/CitationsModal.svelte

@@ -149,7 +149,11 @@
 							{$i18n.t('Content')}
 						</div>
 						<pre class="text-sm dark:text-gray-400 whitespace-pre-line">
-							{document.document}
+							{#if document.metadata?.html}
+								{@html document.document}
+							{:else}
+								{document.document}
+							{/if}
 						</pre>
 					</div>