Skip to content

fix(qwen): place DashScope image prompts in user content#93649

Merged
vincentkoc merged 1 commit into
mainfrom
clownfish/gitcrawl-125-autonomous-terminal-gap
Jun 16, 2026
Merged

fix(qwen): place DashScope image prompts in user content#93649
vincentkoc merged 1 commit into
mainfrom
clownfish/gitcrawl-125-autonomous-terminal-gap

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Fixes #92688.

This updates the media-understanding image runtime so Qwen/DashScope Model Studio image requests put the prompt text in the user message with the image block. DashScope rejects the current system-prompt plus image-only user message shape with Unexpected item type in content.

The change should stay narrow: extend the prompt-in-user-content routing for modelstudio-native image media-understanding endpoints and add a focused regression asserting Qwen/DashScope image requests have no systemPrompt and include { type: "text" } before the image content.

Credit: thanks @Yachiyo404 for the report and reproduction details in #92688.

Clownfish 🐠 replacement reef notes:

fish notes: model gpt-5.5, reasoning medium; reviewed against f114920.

@vincentkoc vincentkoc added the clownfish Tracked by Clownfish automation label Jun 16, 2026
@vincentkoc
vincentkoc merged commit 998445e into main Jun 16, 2026
25 of 28 checks passed
@vincentkoc
vincentkoc deleted the clownfish/gitcrawl-125-autonomous-terminal-gap branch June 16, 2026 13:43
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Jun 16, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jun 17, 2026
)

Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
crh-code pushed a commit to crh-code/openclaw that referenced this pull request Jun 18, 2026
)

Co-authored-by: openclaw-clownfish[bot] <280122609+openclaw-clownfish[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clownfish Tracked by Clownfish automation maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Qwen vision models fail with 400 "Unexpected item type in content" on DashScope

1 participant