-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Qwen vision models fail with 400 "Unexpected item type in content" on DashScope #92688
Copy link
Copy link
Closed
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Description
Metadata
Metadata
Assignees
Labels
P2Normal backlog priority with limited blast radius.Normal backlog priority with limited blast radius.bugSomething isn't workingSomething isn't workingbug:behaviorIncorrect behavior without a crashIncorrect behavior without a crashclawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Priority
None yet
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
Qwen vision models return 400 "Unexpected item type in content" from DashScope when the image tool is invoked.
Steps to reproduce
Expected behavior
The image tool should analyze the image and return a description, since both qwen3.7-max and qwen3.7-plus list "text+image" as supported input.
Actual behavior
The image tool fails immediately. The gateway log shows:
model_fallback_decision: candidate_failed reason=format status=400
providerRuntimeFailureKind: schema
errorPreview: "400 InternalError.Algo.InvalidParameter: The provided messages input is invalid. The error info is [Unexpected item type in content.]"
No reply is returned to the user; the fallback chain is exhausted with outcome=chain_exhausted.
OpenClaw version
2026.6.1 (2e08f0f)
Operating system
Ubuntu 26.04
Install method
npm global
Model
qwen/qwen3.7-max
Provider / routing chain
openclaw -> dashscope (api-key)
Additional provider/model setup details
Default provider configured in ~/.openclaw/openclaw.json under models.providers.qwen with api: "openai-completions" and baseUrl pointing to DashScope. The Qwen provider works normally for text-only requests; only multimodal (image) requests fail.
Logs, screenshots, and evidence
[context-overflow-precheck] ... provider=local-llama/qwen25-7b ... [model-fallback/decision] candidate_failed reason=format status=400 errorPreview: "400 InternalError.Algo.InvalidParameter: The provided messages input is invalid. The error info is [Unexpected item type in content.]" providerRuntimeFailureKind: schema fallbackStepFinalOutcome: chain_exhausted [media-understanding] image: failed (0/1) reason=Image model failed (qwen/qwen3.7-max)Impact and severity
Additional information