mirror of
https://gitee.com/wanwujie/deer-flow
synced 2026-04-19 04:14:46 +08:00
fix: enable proxy support in aiohttp by adding trust_env=True (#289)
This commit is contained in:
@@ -70,7 +70,7 @@ class EnhancedTavilySearchAPIWrapper(OriginalTavilySearchAPIWrapper):
|
|||||||
"include_images": include_images,
|
"include_images": include_images,
|
||||||
"include_image_descriptions": include_image_descriptions,
|
"include_image_descriptions": include_image_descriptions,
|
||||||
}
|
}
|
||||||
async with aiohttp.ClientSession() as session:
|
async with aiohttp.ClientSession(trust_env=True) as session:
|
||||||
async with session.post(f"{TAVILY_API_URL}/search", json=params) as res:
|
async with session.post(f"{TAVILY_API_URL}/search", json=params) as res:
|
||||||
if res.status == 200:
|
if res.status == 200:
|
||||||
data = await res.text()
|
data = await res.text()
|
||||||
|
|||||||
Reference in New Issue
Block a user