fix(tongyi): allow workspace-specific DashScope API Base URL - #3789
Open
Souravrajvi0 wants to merge 2 commits into
Open
fix(tongyi): allow workspace-specific DashScope API Base URL#3789Souravrajvi0 wants to merge 2 commits into
Souravrajvi0 wants to merge 2 commits into
Conversation
Alibaba Cloud Model Studio workspace keys require a host like https://<workspace-id>.cn-beijing.maas.aliyuncs.com/api/v1. Add an optional credential, honor it in HTTP/WS/OpenAI-compatible clients, and keep the shared DashScope endpoints when the field is blank.
Mairuis
reviewed
Sep 7, 2026
Mairuis
left a comment
Contributor
There was a problem hiding this comment.
Please update this branch against current main, choose a fresh Tongyi manifest version (the proposed 0.2.16 is already behind main), and add a non-empty ## Release Notes section. The change also derives speech WebSocket and Qwen-Long URLs, so please include verification of those routes for a workspace-specific endpoint, in addition to the URL normalization tests.
- Resolve Tongyi manifest version to 0.2.19 - Add workspace route tests for Qwen-Long and realtime speech WebSocket
Contributor
Author
|
@Mairuis Thanks for the review. I merged |
Mairuis
approved these changes
Sep 7, 2026
5 tasks
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
Fixes #3787
Tongyi 0.2.15 only switched between the shared China and international DashScope hosts. Workspace-scoped Model Studio keys need a first-party URL such as
https://<workspace-id>.cn-beijing.maas.aliyuncs.com/api/v1, and there was no credential field for it.get_http_base_address/get_ws_base_address(overrides the international toggle when set)/api/v1, OpenAI-compatible/compatible-mode/v1, or a host origin0.2.19Speech WebSocket calls derive
wss://<host>/api-ws/v1/inferencefrom the same host. Leave Base URL blank if that path is not available for the workspace.Release Notes
/api/v1, OpenAI-compatible/compatible-mode/v1, or a host origin and keep the shared China/international endpoints when the field is blank.Change Type
Test plan
uv run pytest tests/test_base_address.py tests/test_llm_qwen_long.py tests/test_text_embedding_retry.py tests/test_validate_provider_credentials.py(50 passed)*.maas.aliyuncs.com/api/v1is now returned instead ofdashscope.aliyuncs.commainand bumped plugin version to0.2.19