瀏覽代碼

refac/fix: sources handling

Timothy Jaeryang Baek 2 月之前
父節點
當前提交
980b7c55a5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
src/lib/components/chat/Chat.svelte

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