Skip to content
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

When running metagpt with Ollama Mistral, I face errors TypeError: 'async for' requires an object with __aiter__ method, got bytes #1693

Open
naveen-raam opened this issue Feb 13, 2025 · 2 comments

Comments

@naveen-raam
Copy link

I used conda to metagpt and so I dont know how to find the source code and edit it.
2025-02-13 20:37:01.345 | ERROR | metagpt.utils.common:log_it:554 - Finished call to 'metagpt.actions.action_node.ActionNode._aask_v1' after 29.328(s), this was the 6th time calling it. exp: 'async for' requires an object with aiter method, got bytes
2025-02-13 20:37:01.347 | WARNING | metagpt.utils.common:wrapper:649 - There is a exception in role's execution, in order to resume, we delete the newest role communication message in the role's memory.
2025-02-13 20:37:01.379 | ERROR | metagpt.utils.common:wrapper:631 - Exception occurs, start to serialize the project, exp:
Traceback (most recent call last):
File "C:\Users\Naveen Raam V\anaconda3\envs\metagpt\lib\site-packages\tenacity_asyncio.py", line 50, in call
result = await fn(*args, **kwargs)
File "C:\Users\Naveen Raam V\anaconda3\envs\metagpt\lib\site-packages\metagpt\actions\action_node.py", line 420, in _aask_v1
content = await self.llm.aask(prompt, system_msgs, images=images, timeout=timeout)
TypeError: 'async for' requires an object with aiter method, got bytes

This is the detailed error message I have received.

@naveen-raam
Copy link
Author

Please provide me solutions on how to handle the issues in latest version. I used conda, so please point out how to change the source code if the solution needs it.

@seehi
Copy link
Contributor

seehi commented Feb 14, 2025

#1218

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants