LLM response status 400 when using certain models
Describe the bug
When using certain models (gpt-6-astra, and gpt-5.6-luna) from a customized provider any prompt returns the following error:
LLM response status: 400 body: {"error":{"message":"litellm.BadRequestError: AzureException BadRequestError - Unsupported value: 'reasoning_effort' does not support 'none' with this model. Supported values are: 'low', 'medium', 'high', and 'xhigh'.","type":"invalid_request_error","param":"reasoning_effort","code":"400"}}
Note that gpt-5.5 works fine.
To Reproduce
Since the models come from the customized providers which is not available to you, it is difficult to reproduce this on your side.
Expected behavior
ECA should send the correct request to the model.
Doctor
ECA version: 0.160.2
Server cmd:
Workspaces: -----------------------------------
Default model: deepseek/deepseek-flash (API key (sk-**********033))
Logged providers: None
Relevant env vars:
MICROSOFT_WINDOWSAPPRUNTIME_BASE_DIRECTORY=C:\Program Files\WindowsApps\Microsoft.CommandPalette_0.11.11762.0_x64__8wekyb3d8bbwe\
Credential files: None found
Please note that I do not use this default deepseek model.
Additional context
I tried add this to the config file, but it does not work:
"agent": {
"code": {
"variant" : "medium"
},
"plan": {
"variant" : "medium"
}
},
After adding this section, I get the following error message:
LLM response status: 400 body: {"error":{"message":"litellm.BadRequestError: AzureException BadRequestError - Unknown parameter: 'reasoning'.","type":"invalid_request_error","param":"reasoning","code":"400"}}
@drcxd thanks, I found a corner case for openai-chat, please test with latest release but also share your custom provider config so I can understand better if still facing issues
@ericdallo I tested with the latest release, but there is a new problem:
LLM response status: 400 body: {"error":{"message":"litellm.BadRequestError: AzureException BadRequestError - Function tools with reasoning_effort are not supported for gpt-6-astra in /v1/chat/completions. To use function tools, use /v1/responses or set reasoning_effort to 'none'.","type":"invalid_request_error","param":"reasoning_effort","code":"400"}}
My configuration file:
{
"network": {
"caCertFile": "E:\\xyz.pem" // certificate
},
"providers": {
"deepseek": {
"api": "openai-chat",
"url": "https://api.deepseek.com",
"key": "-----------------------"
},
"custom": {
"api": "openai-chat",
"url": "https://api.ai.xyz.net/v1",
"key": "------------------------"
}
},
"agent": {
"code": {
"variant" : "none"
},
"plan": {
"variant" : "none"
}
},
"chat": {
"defaultTrust": true
},
"$schema": "https://eca.dev/config.json"
}
The error message remains the same if I remove the agent section in the configuration file. Do I need to adjust my customized provider configuration? I tried to adjust the api field to openai-responses, but then I can not see the models provided by this customized provider when selecting models. Should I contact the provider?
@drcxd the api should be openai-responses, yes