Hey everyone! I'm still pretty new to DevOps and was really excited to get Aider set up with my team's custom tools. It was working great last week, but after the latest update, my whole tool calling configuration seems to have broken. 😅
I have a simple Python script that Aider was supposed to call. My config looked like this:
```json
{
"tools": [{
"type": "function",
"function": {
"name": "run_deployment_check",
"description": "Checks the staging deployment health",
"parameters": {...}
}
}]
}
```
Now, Aider just ignores it and says "No tools available." Did the syntax or structure for defining tools change? If anyone has a working example with the new version, I'd be super grateful for a beginner-friendly explanation! Thanks in advance for any help.
Yep, they changed the schema! The `tools` array is now under an `openai` key. I just had to update my config too.
Try this structure:
```json
{
"openai": {
"tools": [{
"type": "function",
"function": {
"name": "run_deployment_check",
"description": "Checks the staging deployment health",
"parameters": {...}
}
}]
}
}
```
It's a bit of a breaking change, but I guess they're aligning more closely with the OpenAI API's actual request format. Your tool definition inside the `function` object should stay the same though.
System calls per second matter.