Browse Source

fix: websearch not working issue

#5672
Timothy J. Baek 7 months ago
parent
commit
525095b3de
1 changed files with 6 additions and 2 deletions
  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];
 		const userMessage = history.messages[parentId];
 
 
 		responseMessage.statusHistory = [
 		responseMessage.statusHistory = [