Fix "reasoning and reasoning_effort" Conflict (400)
Model Compatibility Issue
OpenClaw sends both reasoning and reasoning_effort parameters simultaneously. Some providers only accept one. One config flag fixes it in under 60 seconds.
This error occurs with models that have partial reasoning support — they accept either reasoning or reasoning_effort, but not both at the same time. Common providers affected: GLM (Zhipu AI), DeepSeek, and certain OpenRouter model routes.
Jump to Section
What the Error Looks Like
This appears in the gateway logs or as an error response in your chat interface. The agent will typically retry and fail again unless the compat flag is set.
Fix: Disable Reasoning for the Provider
Set supportsReasoning: false for Your Provider
Provider-Specific Commands
GLM (Zhipu AI)
openclaw config set models.providers.glm.models.compat '{"supportsReasoning": false}' --jsonDeepSeek
openclaw config set models.providers.deepseek.models.compat '{"supportsReasoning": false}' --jsonOpenRouter
openclaw config set models.providers.openrouter.models.compat '{"supportsReasoning": false}' --jsonopenclaw gateway restart
Why This Happens
OpenClaw supports extended reasoning for providers that advertise it. When a model supports reasoning, OpenClaw sends both the reasoning object (for extended thinking) and reasoning_effort (the intensity level). Some providers implement partial support — they accept one parameter but return a 400 error if both are included in the same request.
Accepts both reasoning and reasoning_effort. Works with OpenAI o-series, Anthropic claude-3-5-sonnet, etc.
Accepts only one of the two parameters. Set supportsReasoning: false to disable dual-parameter injection.
Does not accept either parameter. Standard models — use supportsReasoning: false.
Still Not Working?
Verify the compat flag was saved correctly:
openclaw config get models.providers.<provider>.models.compat
Run the Doctor
Checks your model provider configuration and identifies compatibility issues.
Related API Errors
Other model API issues you might encounter:
Fix It Faster With Our Tools
Did this guide solve your problem?