-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Description
Feature Area
Agent capabilities
Is your feature request related to a an existing bug? Please link it here.
The GPT-5 model is generating tool calls in the WRONG FORMAT. It should be:
{
"responsible_employee_id": null,
"include_inactive": false
}
But it's generating:
[
{
"responsible_employee_id": null,
"include_inactive": false
},
[]
]
This is a GPT-5 model incompatibility issue with CrewAI's tool calling format. The "Repaired JSON" message suggests CrewAI is trying to fix it but failing.
The issue is that GPT-5 has a different function calling format than GPT-4. Let me check if there's a way to fix this in the tool description or if we need to adjust something:
⏺ The "Repaired JSON" is coming from CrewAI itself. This is a known issue with GPT-5 and CrewAI tool calling. The problem is:
- GPT-5 uses a different function calling format than GPT-4
- CrewAI expects GPT-4's format (flat dictionary)
- GPT-5 is wrapping arguments in an array
Describe the solution you'd like
Make the Crews compatible with GPT-5 function calling format.
Describe alternatives you've considered
No response
Additional context
No response
Willingness to Contribute
Yes, I'd be happy to submit a pull request