refac/fix: sources handling

This commit is contained in:
Timothy Jaeryang Baek 2025-07-16 15:12:04 +04:00
parent 8807ac8cac
commit 980b7c55a5

View file

@ -1228,7 +1228,7 @@
await handleOpenAIError(error, message); await handleOpenAIError(error, message);
} }
if (sources) { if (sources && !message?.sources) {
message.sources = sources; message.sources = sources;
} }