Browse Source

fix: websearch not working issue

#5672
Timothy J. Baek 7 tháng trước cách đây
mục cha
commit
525095b3de
1 tập tin đã thay đổi với 6 bổ sung2 xóa
  1. 6 2
      src/lib/components/chat/Chat.svelte

+ 6 - 2
src/lib/components/chat/Chat.svelte

@@ -1683,8 +1683,12 @@
 		}
 	};
 
-	const getWebSearchResults = async (model: string, parentId: string, responseId: string) => {
-		const responseMessage = history.messages[responseId];
+	const getWebSearchResults = async (
+		model: string,
+		parentId: string,
+		responseMessageId: string
+	) => {
+		const responseMessage = history.messages[responseMessageId];
 		const userMessage = history.messages[parentId];
 
 		responseMessage.statusHistory = [