jackwener/maka-agent

feat(providers): add Alibaba (China) provider for the dashscope China endpoint

已关闭

#3,323 创建于 2026年8月20日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (0 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (1 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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 including qwen3.8-max (1M context, 128k output, vision/pdf input, thinking toggle + efforts).
  • Maka's registry (packages/core/src/provider-registry.ts) binds alibaba to the intl endpoint only; scripts/sync-model-metadata.mjs does not ingest alibaba-cn, so no China access path exists.
  • Distinct from #3314: that tracks qwen3.8-max on the Coding Plan subscription (blocked on Alibaba's plan allowlist); this issue is the pay-as-you-go China endpoint, which already serves qwen3.8-max today.

Proposed change (mirrors the existing alibaba shape)

  1. scripts/sync-model-metadata.mjs: ingest alibaba-cn; regenerate model-metadata.generated.ts / model-pricing.generated.ts (pay-as-you-go, so priced like alibaba).
  2. packages/core/src/provider-registry.ts: validate models.dev alibaba-cn facts, derive tool-calling model ids, register alibaba-cn (domestic, API group, signup https://bailian.console.aliyun.com/).
  3. Desktop settings: display copy (Alibaba 中国站 / Alibaba (China)) and brand mark.

贡献者指南