diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index db86eb336..7b13d7426 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; }