Skip to content

feat: add qwen3.6 model family to multimodal API endpoint routing#1179

Merged
LearningGp merged 1 commit intoagentscope-ai:mainfrom
flystar32:feat/support-qwen3.6-multimodal-routing
Apr 10, 2026
Merged

feat: add qwen3.6 model family to multimodal API endpoint routing#1179
LearningGp merged 1 commit intoagentscope-ai:mainfrom
flystar32:feat/support-qwen3.6-multimodal-routing

Conversation

@flystar32
Copy link
Copy Markdown
Collaborator

Summary

  • Add qwen3.6 prefix matching to DashScopeHttpClient.isMultimodalModel() so that qwen3.6 models (e.g., qwen3.6-plus, qwen3.6-flash) are correctly routed to the multimodal-generation API endpoint.
  • Without this fix, qwen3.6 models are sent to the text-generation endpoint, causing a url error from DashScope API.
  • Updated Javadoc and added unit tests for the new model family.

Test plan

  • Added testIsMultimodalModelIncludesQwen36Family test for isMultimodalModel with qwen3.6 variants (including case-insensitivity and negative case)
  • Added qwen3.6 assertions to testSelectEndpointWithAutoFallsBackToModelNameDetection
  • Added qwen3.6 assertion to testRequiresMultimodalApiWithEndpointType
  • All existing DashScopeHttpClientTest tests pass

Made with Cursor

Qwen 3.6 models (e.g., qwen3.6-plus, qwen3.6-flash) require the
multimodal-generation API endpoint, same as the qwen3.5 family.
Without this, requests to qwen3.6 models are routed to the
text-generation endpoint, causing "url error" from DashScope API.

Change-Id: I63c7dd598616a882606f0b2916cec34cab8c4a27
Co-developed-by: Cursor <noreply@cursor.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds qwen3.6* model-family detection to DashScope endpoint routing so Qwen 3.6 variants are correctly sent to the multimodal-generation API (avoiding DashScope URL errors).

Changes:

  • Extend DashScopeHttpClient.isMultimodalModel() to treat qwen3.6* models as multimodal.
  • Update Javadoc routing documentation to include the new family.
  • Add/extend unit tests to cover qwen3.6 routing and detection behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
agentscope-core/src/main/java/io/agentscope/core/model/DashScopeHttpClient.java Adds qwen3.6 prefix matching and updates routing Javadoc.
agentscope-core/src/test/java/io/agentscope/core/model/DashScopeHttpClientTest.java Adds assertions/tests covering qwen3.6 detection and AUTO endpoint routing.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Collaborator

@LearningGp LearningGp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LearningGp LearningGp merged commit 3c56a06 into agentscope-ai:main Apr 10, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants