From 498cea8c7bce2b24e452de2f616b053d83a81902 Mon Sep 17 00:00:00 2001 From: romansharapov19 Date: Fri, 22 Sep 2023 09:54:09 +0100 Subject: [PATCH] feat: improve document snippets output --- packages/web-ui/components/document-snippets.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/web-ui/components/document-snippets.tsx b/packages/web-ui/components/document-snippets.tsx index 3a3bbb6..df59b89 100644 --- a/packages/web-ui/components/document-snippets.tsx +++ b/packages/web-ui/components/document-snippets.tsx @@ -10,6 +10,7 @@ import { DialogTitle, DialogTrigger, } from '@/components/ui/dialog'; +import Markdown from '@/components/markdown'; type DocumentSnippetsProps = { source: ChatMessageSourceType; @@ -33,7 +34,7 @@ export function DocumentSnippets({ source }: DocumentSnippetsProps) { <> {source.snippets.map((snippet, index) => { - return

{snippet}

; + return ; })}