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
[Bug]:HTTP 400 "url error, please check url!" when calling qwen4-max with DashScopeChatModel #4347
Figured out the cause: qwen4-max is served by the multimodal API, but AUTO endpoint detection only recognized the qwen3.5–qwen3.8 families. So requests went to the text-generation endpoint, and DashScope answers that mismatch with the 400 url error. That's also why qwen3.8-flash worked with the same code.
Checked against the live API: qwen4-max returns 400 on the text-generation endpoint and 200 on the multimodal one.
Added the qwen4 prefix to the detection whitelist in #4348. AUTO now routes qwen4-max to the multimodal endpoint, and both streaming and non-streaming calls work. Until it's released, setting endpointType(EndpointType.MULTIMODAL) (or multimodalModelPatterns(List.of("qwen4"))) works around it.
Activity
iluv7 commentedon Nov 23, 2026
Figured out the cause:
qwen4-maxis served by the multimodal API, but AUTO endpoint detection only recognized the qwen3.5–qwen3.8 families. So requests went to the text-generation endpoint, and DashScope answers that mismatch with the 400url error. That's also whyqwen3.8-flashworked with the same code.Checked against the live API:
qwen4-maxreturns 400 on the text-generation endpoint and 200 on the multimodal one.Added the
qwen4prefix to the detection whitelist in #4348. AUTO now routesqwen4-maxto the multimodal endpoint, and both streaming and non-streaming calls work. Until it's released, settingendpointType(EndpointType.MULTIMODAL)(ormultimodalModelPatterns(List.of("qwen4"))) works around it.