fix(providers): register alibaba-coding-plan as a first-class provider#14961
Closed
ygd58 wants to merge 1 commit into
Closed
fix(providers): register alibaba-coding-plan as a first-class provider#14961ygd58 wants to merge 1 commit into
ygd58 wants to merge 1 commit into
Conversation
The alibaba-coding-plan provider (coding-intl.dashscope.aliyuncs.com/v1) was not registered in providers.py or auth.py. When users set provider: alibaba_coding or provider: alibaba-coding-plan in config.yaml, Hermes could not resolve the credentials and fell back to OpenRouter or rejected the request with HTTP 401/402 (issue NousResearch#14940). Changes: - providers.py: add HermesOverlay for alibaba-coding-plan with ALIBABA_CODING_PLAN_BASE_URL env var support - providers.py: add aliases alibaba_coding, alibaba-coding, alibaba_coding_plan -> alibaba-coding-plan - auth.py: add ProviderConfig for alibaba-coding-plan with: - inference_base_url: https://coding-intl.dashscope.aliyuncs.com/v1 - api_key_env_vars: ALIBABA_CODING_PLAN_API_KEY, DASHSCOPE_API_KEY Fixes NousResearch#14940
Contributor
|
Merged via #15045 — your commit was cherry-picked onto current main with your authorship preserved in Thanks for the clean, minimal fix! |
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.
Problem
The
alibaba-coding-planprovider (coding-intl.dashscope.aliyuncs.com/v1) was not registered inproviders.pyorauth.py. When users setprovider: alibaba_codingorprovider: alibaba-coding-planinconfig.yaml, Hermes could not resolve credentials and fell back to OpenRouter (HTTP 402) or rejected with HTTP 401.Fix
providers.py: addHermesOverlayforalibaba-coding-plan+ aliases (alibaba_coding,alibaba-coding,alibaba_coding_plan)auth.py: addProviderConfigwith correct endpoint (coding-intl.dashscope.aliyuncs.com/v1) and env vars (ALIBABA_CODING_PLAN_API_KEY,DASHSCOPE_API_KEY)Fixes #14940