jackwener/maka-agent
feat(providers): add Alibaba (China) provider for the dashscope China endpoint
Closed
#3,323 opened on Aug 20, 2026
enhancementhelp wanted
Repository metrics
- Stars
- (1 star)
- PR merge metrics
- (No merged PRs in 30d)
Description
Summary
Maka's alibaba provider is pinned to the international Model Studio endpoint (https://dashscope-intl.aliyuncs.com/compatible-mode/v1). There is no provider for the China platform endpoint (https://dashscope.aliyuncs.com/compatible-mode/v1), so China-platform users cannot connect with their sk-xxx keys issued on bailian.console.aliyun.com — and cannot select China-platform models such as qwen3.8-max.
Other tools consuming models.dev already expose this as Alibaba (China) (alibaba-cn), e.g. OpenCode offers qwen3.8-max through it.
Evidence (checked 2026-08-20)
- models.dev publishes
alibaba-cn("Alibaba (China)",https://dashscope.aliyuncs.com/compatible-mode/v1) with a full tool-calling catalog includingqwen3.8-max(1M context, 128k output, vision/pdf input, thinking toggle + efforts). - Maka's registry (
packages/core/src/provider-registry.ts) bindsalibabato the intl endpoint only;scripts/sync-model-metadata.mjsdoes not ingestalibaba-cn, so no China access path exists. - Distinct from #3314: that tracks
qwen3.8-maxon the Coding Plan subscription (blocked on Alibaba's plan allowlist); this issue is the pay-as-you-go China endpoint, which already servesqwen3.8-maxtoday.
Proposed change (mirrors the existing alibaba shape)
scripts/sync-model-metadata.mjs: ingestalibaba-cn; regeneratemodel-metadata.generated.ts/model-pricing.generated.ts(pay-as-you-go, so priced likealibaba).packages/core/src/provider-registry.ts: validate models.devalibaba-cnfacts, derive tool-calling model ids, registeralibaba-cn(domestic, API group, signuphttps://bailian.console.aliyun.com/).- Desktop settings: display copy (Alibaba 中国站 / Alibaba (China)) and brand mark.