Commit 3c56a06
authored
feat(model): add qwen3.6 model family to multimodal API endpoint routing (#1179)
## 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
- [x] Added `testIsMultimodalModelIncludesQwen36Family` test for
`isMultimodalModel` with qwen3.6 variants (including case-insensitivity
and negative case)
- [x] Added qwen3.6 assertions to
`testSelectEndpointWithAutoFallsBackToModelNameDetection`
- [x] Added qwen3.6 assertion to
`testRequiresMultimodalApiWithEndpointType`
- [x] All existing `DashScopeHttpClientTest` tests pass
Made with [Cursor](https://cursor.com)1 parent de01c66 commit 3c56a06
2 files changed
Lines changed: 18 additions & 1 deletion
File tree
- agentscope-core/src
- main/java/io/agentscope/core/model
- test/java/io/agentscope/core/model
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| |||
370 | 371 | | |
371 | 372 | | |
372 | 373 | | |
| 374 | + | |
373 | 375 | | |
374 | 376 | | |
375 | 377 | | |
| |||
383 | 385 | | |
384 | 386 | | |
385 | 387 | | |
386 | | - | |
| 388 | + | |
| 389 | + | |
387 | 390 | | |
388 | 391 | | |
389 | 392 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
| |||
182 | 185 | | |
183 | 186 | | |
184 | 187 | | |
| 188 | + | |
185 | 189 | | |
186 | 190 | | |
187 | 191 | | |
| |||
195 | 199 | | |
196 | 200 | | |
197 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
198 | 212 | | |
199 | 213 | | |
200 | 214 | | |
| |||
0 commit comments