Skip to content

Commit

Permalink
Misc: allow to use proxy in HTTPConnection (vllm-project#12042)
Browse files Browse the repository at this point in the history
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
  • Loading branch information
zhouyuan authored Jan 15, 2025
1 parent 97eb97b commit 5ecf3e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vllm/connections.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_sync_client(self) -> requests.Session:
# required, so that the client is only accessible inside async event loop
async def get_async_client(self) -> aiohttp.ClientSession:
if self._async_client is None or not self.reuse_client:
self._async_client = aiohttp.ClientSession()
self._async_client = aiohttp.ClientSession(trust_env=True)

return self._async_client

Expand Down

0 comments on commit 5ecf3e0

Please sign in to comment.