feat: add qwen3.6 model family to multimodal API endpoint routing#1179
Merged
LearningGp merged 1 commit intoagentscope-ai:mainfrom Apr 10, 2026
Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
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 treatqwen3.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 Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
qwen3.6prefix matching toDashScopeHttpClient.isMultimodalModel()so that qwen3.6 models (e.g.,qwen3.6-plus,qwen3.6-flash) are correctly routed to the multimodal-generation API endpoint.url errorfrom DashScope API.Test plan
testIsMultimodalModelIncludesQwen36Familytest forisMultimodalModelwith qwen3.6 variants (including case-insensitivity and negative case)testSelectEndpointWithAutoFallsBackToModelNameDetectiontestRequiresMultimodalApiWithEndpointTypeDashScopeHttpClientTesttests passMade with Cursor