Browse Source

refac: accept legacy 'citation' type

Timothy Jaeryang Baek 5 tháng trước cách đây
mục cha
commit
1c3bc99b86
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
src/lib/components/chat/Chat.svelte

@@ -216,7 +216,7 @@
 				} else {
 					message.statusHistory = [data];
 				}
-			} else if (type === 'source') {
+			} else if (type === 'source' || type === 'citation') {
 				if (data?.type === 'code_execution') {
 					// Code execution; update existing code execution by ID, or add new one.
 					if (!message?.code_executions) {