feat(providers): add Alibaba (China) provider for the dashscope China endpoint - #3329
Open
me2seeks wants to merge 1 commit into
Open
feat(providers): add Alibaba (China) provider for the dashscope China endpoint#3329me2seeks wants to merge 1 commit into
me2seeks wants to merge 1 commit into
Conversation
… endpoint Register models.dev alibaba-cn as a first-class provider so China-platform users can connect to https://dashscope.aliyuncs.com/compatible-mode/v1 with keys from bailian.console.aliyun.com. The catalog carries 81 tool-calling models and defaults to qwen3.8-max, with hosted web-search parity to the international alibaba provider. The models.dev sync ingests alibaba-cn; the generated metadata and pricing snapshots gain only the alibaba-cn blocks because a full regeneration is currently blocked by unrelated upstream drift (e.g. opencode free-model renames) that deserves its own sync pass. Closes apache#3323 Generated-by: Maka
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
Maka's
alibabaprovider is pinned to the international Model Studio endpoint (dashscope-intl.aliyuncs.com), leaving no access path for the China platform. This PR registers models.devalibaba-cnas a first-class provider bound tohttps://dashscope.aliyuncs.com/compatible-mode/v1, so China-platform users can connect with keys from bailian.console.aliyun.com. The catalog carries 81 tool-calling models and defaults toqwen3.8-max(1M context, 128k output, vision/pdf input, thinking toggle + low/medium/xhigh efforts). Hosted web-search handling mirrors the internationalalibabaprovider, and the desktop picker gains display copy (Alibaba 中国站 / Alibaba (China)) plus the Alibaba brand mark.The models.dev sync now ingests
alibaba-cn. The generated metadata and pricing snapshots gain only the alibaba-cn blocks (spliced from a full live regeneration): a full regen is currently blocked by unrelated upstream drift — e.g. models.dev renamed the opencode free modelnorth-mini-code-free, which would break an existing registry pin — and that drift deserves its own sync pass rather than riding along here.Fixes #3323
Verification
node --test packages/core/dist/__tests__/**/*.test.js— 553/553 pass (includes new catalog + web-search assertions)node --test packages/runtime/dist/__tests__/**/*.test.js— 2843 pass, 0 fail (includes new wire-contract assertion keepingqwen3.8-maxonopenai-chat)@maka/desktoptypecheck — clean (all four tsconfigs)biome format/biome linton all touched files — cleanPROVIDER_REGISTRY['alibaba-cn']→ labelAlibaba (China), China endpoint,fallbackModels[0] === 'qwen3.8-max'AI use
Select exactly one:
Tool(s) and scope: Maka — investigation, implementation, and tests; commit carries the
Generated-by: Makatrailer.Checklist
Does this PR entail a change in behavior?