From 980b7c55a55bcd1fef0a6d52db2df3502cccef6a Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Wed, 16 Jul 2025 15:12:04 +0400 Subject: [PATCH] refac/fix: sources handling --- 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 db86eb3368..7b13d74265 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -1228,7 +1228,7 @@ await handleOpenAIError(error, message); } - if (sources) { + if (sources && !message?.sources) { message.sources = sources; }