xiaolv commited on
Commit
a00e903
·
1 Parent(s): 09037cc

Update EdgeGPT.py

Browse files
Files changed (1) hide show
  1. EdgeGPT.py +5 -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=120,
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=120,
373
  headers=HEADERS_INIT_CONVER,
374
  transport=transport,
375
  ) as client:
@@ -603,6 +603,9 @@ class Chatbot:
603
  self.chat_hub: _ChatHub = _ChatHub(
604
  _Conversation(self.cookies, self.proxy),
605
  )
 
 
 
606
 
607
  @staticmethod
608
  async def create(
 
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
  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:
 
603
  self.chat_hub: _ChatHub = _ChatHub(
604
  _Conversation(self.cookies, self.proxy),
605
  )
606
+ print(f"*" * 100)
607
+ print(f">>>>>>> 执行了小吕自己的本地代码")
608
+ print(f"*" * 100)
609
 
610
  @staticmethod
611
  async def create(