Open
Description
Describe the bug
In a group chat setting, where some agents have tools associated with them. I frequently face this error:
openai.InternalServerError: Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}
I am facing this error repeatedly whenever within a group chat, many agents have different tools attached to them.
Steps to reproduce
- Create a group chat with multiple agents
- Bind tools with some of the agents.
- Initiate the group-chat
- It takes a long time to get the response back and then the received response is: openai.InternalServerError: Error code: 500 - {'error': {'message': 'The model produced invalid content. Consider modifying your prompt if you are seeing this error persistently.', 'type': 'model_error', 'param': None, 'code': None}}
Model Used
gpt-4
Expected Behavior
The tool should have executed without any issues
Screenshots and logs
Additional Information
pyautogen 0.2.28
openai 1.16.2
Python 3.10.7
OS Windows 11