Make parallel_tool_calls parameter optional for Azure OpenAI compatibility
Hi,
eca currently always includes the parallel_tool_calls parameter in chat completion requests. Azure OpenAI endpoints do not support this parameter and return a 400 error when it is present. See related Azure bug report: https://github.com/Azure/azure-rest-api-specs/issues/29545.
To ensure compatibility with Azure deployments, could you please consider making this parameter optional or add a configuration option to disable it when using endpoints that do not support it.
Expected Behavior:
eca should omit parallel_tool_calls when the endpoint does not support it, allowing successful requests to Azure OpenAI.
thanks
Hey @ikappaki , the nice thing about ECA is that you can override any payload sent to model, including that one, something like this should do:
{
"providers": {
"azure": {
...
"models": {
"gpt-5": {
"extraPayload": {
"parallel_tool_calls": false
}
}
}
}
}
}
Sorry, I wasn’t clear. It’s the presence of this key that causes the API to fail, not its value. The API fails whether the key is set to true or false.
Hum, that's weird, I believe we can assoc that field only if its truth
Done in 0.71.3!
Thanks @ericdallo. Unfortunately, this didn’t solve the problem and the value is still being sent. I believe this flag is always set beforehand by https://github.com/editor-code-assistant/eca/blob/96c50be45342ae39df93b881b97f524631ea948e/src/eca/llm_providers/openai.clj#L113?
oh my bad, I changed only for openai-chat not openai-responses which is what azure uses
@ikappaki done!
Thanks @ericdallo, this is working now!