You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
qwen3.7-max returns 401 unsupported_value for response_format.type via oa-compat #29754
The oa-compat layer may be sending a response_format parameter that qwen3.7-max doesn't support (e.g. structured output / JSON mode). The model's API rejects it as unsupported.
Additional Context
Multiple users reporting this in the past few days. Seems to be a regression or incompatibility introduced with the qwen3.7-max model update.
May I ask what you are suggesting with this screenshot? The API endpoint for Opencode needs to be changed to use Qwen 3.7, maybe? So, you suggest, I need one endpoint and protocol for Qwen3.7 and others for the other models? Please clarify. This could maybe be solved with a litelllm server, if I understand your screenshot correctly. But then Opencode shouldn't report Qwen 3.7 on the default endpoint IMO. Kind regards
@Cephei-OpenSource Yes, based on tests from others online, the configuration for Qwen 3.7 differs from that of other models. Other models use the OpenAI Chat Completions API, but Qwen 3.7 requires the Anthropic Messages protocol to function properly.
Thanks a lot. I can confirm with the anthropic protocol Qwen 3.7 Max is working with Open WebUI if embedded via a LiteLLM Server to force the different protocols. In case somebody needs it:
Declare the API Key for Opencode in .env
Don't forget to define a variable for it also in docker-compose.yml
Entries for config.yaml (example models: MiMo V2.5 Pro and Qwen 3.7 Max):
# Opencode
# 1. Mimo -> OpenAI Format, base needs /v1, protocol is openai/
- model_name: mimo-v2.5-pro
litellm_params:
model: openai/mimo-v2.5-pro
api_base: https://opencode.ai/zen/go/v1
api_key: os.environ/OPENCODE_API_KEY
additional_drop_params: ["reasoningSummary"]
# 2. Qwen -> Anthropic Format, base without /v1, protocol is anthropic/
- model_name: qwen3.7-max
litellm_params:
model: anthropic/qwen3.7-max
api_base: https://opencode.ai/zen/go
api_key: os.environ/OPENCODE_API_KEY
This example works for a Zen subscription using Go models.
Again, thanks a lot for your help. Kind regards, Michael
Activity
github-actions commentedon May 28, 2026
This issue might be a duplicate of existing issues. Please check:
unsupported_valueerror forresponse_format.typevia oa-compatPlease follow the discussion in #29568 for updates and consider closing this issue if it covers the same problem.
CJ5035 commentedon May 29, 2026
Cephei-OpenSource commentedon May 29, 2026
May I ask what you are suggesting with this screenshot? The API endpoint for Opencode needs to be changed to use Qwen 3.7, maybe? So, you suggest, I need one endpoint and protocol for Qwen3.7 and others for the other models? Please clarify. This could maybe be solved with a litelllm server, if I understand your screenshot correctly. But then Opencode shouldn't report Qwen 3.7 on the default endpoint IMO. Kind regards
CJ5035 commentedon May 30, 2026
@Cephei-OpenSource Yes, based on tests from others online, the configuration for Qwen 3.7 differs from that of other models. Other models use the OpenAI Chat Completions API, but Qwen 3.7 requires the Anthropic Messages protocol to function properly.
try this:
https://mp.weixin.qq.com/s/PIMju3QjgBOzhtgXyTSZ_A
Cephei-OpenSource commentedon May 30, 2026
Thanks a lot. I can confirm with the anthropic protocol Qwen 3.7 Max is working with Open WebUI if embedded via a LiteLLM Server to force the different protocols. In case somebody needs it:
Declare the API Key for Opencode in .env
Don't forget to define a variable for it also in docker-compose.yml
Entries for config.yaml (example models: MiMo V2.5 Pro and Qwen 3.7 Max):
This example works for a Zen subscription using Go models.
Again, thanks a lot for your help. Kind regards, Michael
moinulmoin commentedon May 31, 2026
still waiting for this, lol
carter-smalls commentedon May 31, 2026
Might be related to auth/config errors from OpenAI.
npx ai-doctormight catch API key issues and auth config problems.github-actions commentedon Jul 31, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.