When running metagpt with Ollama Mistral, I face errors TypeError: 'async for' requires an object with __aiter__ method, got bytes
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.
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.
#1218
This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.
This issue was closed due to 45 days of inactivity. If you feel this issue is still relevant, please reopen the issue to continue the discussion.