From 7c5b845d16eec5a01853300d82d20122762d796a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Tue, 19 Nov 2024 18:26:01 -0800 Subject: [PATCH] refac: add citations to outlet/actions form Co-Authored-By: Alex Morgan --- src/lib/components/chat/Chat.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index bfc9800fe..8a1ef2d91 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -663,7 +663,8 @@ role: m.role, content: m.content, info: m.info ? m.info : undefined, - timestamp: m.timestamp + timestamp: m.timestamp, + ...(m.citations ? { citations: m.citations } : {}) })), chat_id: chatId, session_id: $socket?.id, @@ -716,7 +717,8 @@ role: m.role, content: m.content, info: m.info ? m.info : undefined, - timestamp: m.timestamp + timestamp: m.timestamp, + ...(m.citations ? { citations: m.citations } : {}) })), ...(event ? { event: event } : {}), chat_id: chatId,