Skip to content

Commit 4bbc566

Browse files
zhouyuanGWS0428
authored andcommitted
Misc: allow to use proxy in HTTPConnection (vllm-project#12042)
Signed-off-by: Yuan Zhou <[email protected]>
1 parent 13eb3ad commit 4bbc566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/connections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def get_sync_client(self) -> requests.Session:
2929
# required, so that the client is only accessible inside async event loop
3030
async def get_async_client(self) -> aiohttp.ClientSession:
3131
if self._async_client is None or not self.reuse_client:
32-
self._async_client = aiohttp.ClientSession()
32+
self._async_client = aiohttp.ClientSession(trust_env=True)
3333

3434
return self._async_client
3535

0 commit comments

Comments
 (0)