Skip to content

fix(providers): register alibaba-coding-plan as a first-class provider#14961

Closed
ygd58 wants to merge 1 commit into
NousResearch:mainfrom
ygd58:fix/alibaba-coding-plan-provider-resolution
Closed

fix(providers): register alibaba-coding-plan as a first-class provider#14961
ygd58 wants to merge 1 commit into
NousResearch:mainfrom
ygd58:fix/alibaba-coding-plan-provider-resolution

Conversation

@ygd58

@ygd58 ygd58 commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

Problem

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 credentials and fell back to OpenRouter (HTTP 402) or rejected with HTTP 401.

Fix

  • providers.py: add HermesOverlay for alibaba-coding-plan + aliases (alibaba_coding, alibaba-coding, alibaba_coding_plan)
  • auth.py: add ProviderConfig with correct endpoint (coding-intl.dashscope.aliyuncs.com/v1) and env vars (ALIBABA_CODING_PLAN_API_KEY, DASHSCOPE_API_KEY)

Fixes #14940

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
@alt-glitch alt-glitch added type/bug Something isn't working P1 High — major feature broken, no workaround comp/cli CLI entry point, hermes_cli/, setup wizard provider/qwen Qwen / Alibaba Cloud (OAuth) labels Apr 24, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Merged via #15045 — your commit was cherry-picked onto current main with your authorship preserved in git log. I added one follow-up: mirror the three alibaba_coding* aliases into auth.py::resolve_provider()::_PROVIDER_ALIASES so the issue's exact repro (provider: alibaba_coding) actually resolves. Without it, providers.py::ALIASES wasn't consulted before resolve_provider raised Unknown provider.

Thanks for the clean, minimal fix!

@teknium1 teknium1 closed this Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P1 High — major feature broken, no workaround provider/qwen Qwen / Alibaba Cloud (OAuth) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Model switching fails when using Alibaba Coding Plan custom provider - auto-resolution ignores user config

3 participants