gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

The provider Yqcloud can't work after update the newest version

Open zjhgx163 opened this issue 2 years ago • 2 comments
trafficstars

Traceback (most recent call last): File "/Users/gaoxianghu/opt/anaconda3/envs/aliyunpanCrawler/lib/python3.10/site-packages/g4f/Provider/base_provider.py", line 109, in create_completion yield loop.run_until_complete(gen.anext()) File "/Users/gaoxianghu/opt/anaconda3/envs/aliyunpanCrawler/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete return future.result() File "/Users/gaoxianghu/opt/anaconda3/envs/aliyunpanCrawler/lib/python3.10/site-packages/g4f/Provider/Yqcloud.py", line 26, in create_async_generator async with session.post("https://api.aichatos.cloud/api/generateStream", proxy=proxy, json=payload) as response: File "/Users/gaoxianghu/opt/anaconda3/envs/aliyunpanCrawler/lib/python3.10/site-packages/aiohttp/client.py", line 1141, in aenter self._resp = await self._coro File "/Users/gaoxianghu/opt/anaconda3/envs/aliyunpanCrawler/lib/python3.10/site-packages/aiohttp/client.py", line 447, in _request tm = TimeoutHandle(self._loop, real_timeout.total) AttributeError: 'int' object has no attribute 'total'

zjhgx163 avatar Oct 07 '23 18:10 zjhgx163

aiorequests doesn't have a timeout by default. There is no reason for a timeout config. I already removed them again in my PR.

hlohaus avatar Oct 07 '23 19:10 hlohaus

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar Oct 15 '23 00:10 github-actions[bot]

Closing due to inactivity.

github-actions[bot] avatar Feb 28 '24 00:02 github-actions[bot]