xiaolv commited on
Commit
e2be334
·
1 Parent(s): fae4ad2

Update EdgeGPT.py

Browse files
Files changed (1) hide show
  1. EdgeGPT.py +2 -2
EdgeGPT.py CHANGED
@@ -314,7 +314,7 @@ class _Conversation:
314
  proxy = "socks5://" + proxy[len("socks5h://") :]
315
  self.session = httpx.Client(
316
  proxies=proxy,
317
- timeout=30,
318
  headers=HEADERS_INIT_CONVER,
319
  )
320
  for cookie in cookies:
@@ -369,7 +369,7 @@ class _Conversation:
369
  transport = httpx.AsyncHTTPTransport(retries=10)
370
  async with httpx.AsyncClient(
371
  proxies=proxy,
372
- timeout=30,
373
  headers=HEADERS_INIT_CONVER,
374
  transport=transport,
375
  ) as client:
 
314
  proxy = "socks5://" + proxy[len("socks5h://") :]
315
  self.session = httpx.Client(
316
  proxies=proxy,
317
+ timeout=120,
318
  headers=HEADERS_INIT_CONVER,
319
  )
320
  for cookie in cookies:
 
369
  transport = httpx.AsyncHTTPTransport(retries=10)
370
  async with httpx.AsyncClient(
371
  proxies=proxy,
372
+ timeout=120,
373
  headers=HEADERS_INIT_CONVER,
374
  transport=transport,
375
  ) as client: