feat(auth): implement Alibaba Cloud Standard API Key support#2668
Merged
pomelo-nwu merged 4 commits intoQwenLM:mainfrom Mar 27, 2026
Merged
feat(auth): implement Alibaba Cloud Standard API Key support#2668pomelo-nwu merged 4 commits intoQwenLM:mainfrom
pomelo-nwu merged 4 commits intoQwenLM:mainfrom
Conversation
Collaborator
|
@JohnKeating1997 Thanks for your contribution! |
2987ff0 to
28dbf66
Compare
…API authentication - Updated AuthDialog to handle multiple model IDs, allowing users to input and submit a comma-separated list. - Adjusted related functions to process and validate multiple model IDs. - Enhanced user feedback messages to reflect the changes in model ID handling.
…I Key in AuthDialog - Changed all instances of "Alibaba Cloud Standard API Key" to "Alibaba Cloud ModelStudio Standard API Key" in AuthDialog and related tests. - Added documentation links for ModelStudio Standard API Key based on region selection. - Enhanced user feedback messages to reflect the new API key terminology.
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.
TLDR
/authunder the API Key level, while keeping the top-level menu asQwen OAuth / Alibaba Cloud Coding Plan / API Key.env.DASHSCOPE_API_KEYand writes/updatesmodelProviders.openai+model.name, reducing manual settings edits for standard DashScope users.Screenshots / Video Demo
Dive Deeper
packages/cli/src/constants/alibabaStandardApiKey.ts.handleAlibabaStandardSubmitthroughuseAuth,AppContainer, andUIActionsContext.AuthDialog:API Key->Select API Key typeAlibaba Cloud Standard API Key-> region select -> API key input -> model ID inputCustom API Keykeeps existing custom-config guidance page[https://dashscope.aliyuncs.com/compatible-mode/v1](https://dashscope.aliyuncs.com/compatible-mode/v1%60)[https://dashscope-intl.aliyuncs.com/compatible-mode/v1](https://dashscope-intl.aliyuncs.com/compatible-mode/v1%60)[https://dashscope-us.aliyuncs.com/compatible-mode/v1](https://dashscope-us.aliyuncs.com/compatible-mode/v1%60)[https://cn-hongkong.dashscope.aliyuncs.com/compatible-mode/v1](https://cn-hongkong.dashscope.aliyuncs.com/compatible-mode/v1%60)Reviewer Test Plan
npm installnpm run build --workspace=packages/clinpm start/authand verify top-level menu has:Qwen OAuthAlibaba Cloud Coding PlanAPI KeyAPI Keyand verify second-level menu:Alibaba Cloud Standard API KeyCustom API KeyAlibaba Cloud Standard API Keyand verify region list and endpoint text for each option.qwen3.5-plus)env.DASHSCOPE_API_KEYis setmodelProviders.openaicontains the selected model/baseUrl/envKeysecurity.auth.selectedTypeisopenaimodel.namematches entered model ID/authand verify behavior still navigates correctly and Esc back navigation works across nested steps.Testing Matrix
Linked issues / bugs
Resolves #2664