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; }