From 8f6f71ba7efc2c8e39602c29ba050d549133818b Mon Sep 17 00:00:00 2001 From: seehi <6580@pm.me> Date: Fri, 9 Aug 2024 18:30:28 +0800 Subject: [PATCH] solve anti-robot in web search --- metagpt/actions/search_enhanced_qa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metagpt/actions/search_enhanced_qa.py b/metagpt/actions/search_enhanced_qa.py index c2538dbfb..1d7944d61 100644 --- a/metagpt/actions/search_enhanced_qa.py +++ b/metagpt/actions/search_enhanced_qa.py @@ -76,7 +76,7 @@ class SearchEnhancedQA(Action): ) user_agent: str = Field( default="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.81", - description="Specific user agent to use in browser", + description="Specific user agent to use in browser.", ) extra_http_headers: dict = Field( default={"sec-ch-ua": 'Chromium";v="125", "Not.A/Brand";v="24'},