Browse Source

refac: add citations to outlet/actions form

Co-Authored-By: Alex Morgan <alxmrg55@gmail.com>
Timothy Jaeryang Baek 5 tháng trước cách đây
mục cha
commit
7c5b845d16
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      src/lib/components/chat/Chat.svelte

+ 4 - 2
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,