From cda3870adddfdc77a379bf553dc33222996a7cc2 Mon Sep 17 00:00:00 2001 From: Xintao Wang <45614399+Neph0s@users.noreply.github.com> Date: Sat, 7 Jun 2025 15:30:13 +0800 Subject: [PATCH] fix: enable proxy support in aiohttp by adding trust_env=True (#289) --- src/tools/tavily_search/tavily_search_api_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/tavily_search/tavily_search_api_wrapper.py b/src/tools/tavily_search/tavily_search_api_wrapper.py index 574cb9a..ef19728 100644 --- a/src/tools/tavily_search/tavily_search_api_wrapper.py +++ b/src/tools/tavily_search/tavily_search_api_wrapper.py @@ -70,7 +70,7 @@ class EnhancedTavilySearchAPIWrapper(OriginalTavilySearchAPIWrapper): "include_images": include_images, "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: if res.status == 200: data = await res.text()