From 1c3bc99b86ef35476b803a63b334ff85b4b622cb Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 22 Nov 2024 10:49:30 -0800 Subject: [PATCH] refac: accept legacy 'citation' type --- src/lib/components/chat/Chat.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 0ef11313e..68f6023d7 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/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) {