[.Net][Bug]: An error occurred: 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}} #3437
Milestone
Describe the bug
gpt 3.5/4o model raises error code 500 when the message history 1) contains multiple, different tool calls with
name
field., 2) contains multiple user messages from different usersFor example
According to https://community.openai.com/t/error-the-model-produced-invalid-content/747511, the model can respond correctly after the
name
field is removed when the assistant message is a tool call messageFor more details, check #3247
python side fix: #3429
The text was updated successfully, but these errors were encountered: