mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-05 14:07:03 +08:00
Misc: allow to use proxy in HTTPConnection (#12042)
Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
This commit is contained in:
parent
97eb97b5a4
commit
5ecf3e0aaf
@ -29,7 +29,7 @@ class HTTPConnection:
|
||||
# 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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user