浏览代码

feat: message event

Timothy J. Baek 1 年之前
父节点
当前提交
7ba7b959a8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/lib/components/chat/Chat.svelte

+ 2 - 0
src/lib/components/chat/Chat.svelte

@@ -156,6 +156,8 @@
 				} else {
 					message.citations = [data];
 				}
+			} else if (type === 'message') {
+				message.content += data.content;
 			} else if (type === 'confirmation') {
 				eventCallback = cb;
 				showEventConfirmation = true;