mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-23 08:25:57 +00: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