-
-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR:root:'async for' requires an object with __aiter__ method #2319
Comments
How can fix this? |
thanks very much |
Did you manage to fix it ? |
@ahmedashraf443 yes you can use https://github.com/kqlio67/gpt4free |
@hqnicolas |
I installed the latest version of the repository, when I try to use it through the API, I get this error:
I see that the error was fixed with previous updates, I also see that recommendations are given above, but I personally did not understand how to fix the error. |
@kqvanity take this file and create a pull request.... |
when i want use api after i send a message with openai lib, i got this error in log:
ERROR:root:'async for' requires an object with aiter method, got generator
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/g4f/api/init.py", line 198,
in streaming
async for chunk in response:
TypeError: 'async for' requires an object with aiter method, got generator
The text was updated successfully, but these errors were encountered: