Skip to content

Bind dashscope-cn DeepSeek rows from the third-party suppliers the compat page names - #790

Merged
tombeckenham merged 2 commits into
mainfrom
716-probe-the-chat-endpoint-for-providers-with-no-schemaendpoint
Dec 4, 2026
Merged

tombeckenham merged 2 commits into
mainfrom
716-probe-the-chat-endpoint-for-providers-with-no-schemaendpoint

Conversation

@tombeckenham

@tombeckenham tombeckenham commented Dec 4, 2026 •

Copy link
Copy Markdown
Collaborator

Binds 12 more dashscope-cn chat rows from the provider's own docs. No probe is added: we still hold no key for any provider in #716. Part of #716 (not --fixes: 34 rows remain, listed below).

What changed

The Beijing compat page's supported-models line names third-party suppliers per family:

DeepSeek(阿里云直供、硅基流动直供、快手万擎直供)、Kimi(阿里云直供、月之暗面直供)、GLM(阿里云直供)、MiniMax(阿里云直供、稀宇科技直供)

parseDashscopeCnCompat dropped those notes, so siliconflow/deepseek-* (4) and vanchin/deepseek-* (8) never matched the DeepSeek family (#733 listed them under "Not covered"). The parser now keeps the families that have a supplier other than 阿里云直供 (scope.thirdParty), and dashscopeCompatCovers matches a supplier/model id against those. ZHIPU/GLM-* stays unbound: the line gives GLM as 阿里云直供 only.

  • DOCS_CACHE_VERSION v53 → v54, so the cached scope is re-parsed at once.
  • The Intl adapter shares dashscopeCompatCovers; its scope has no thirdParty, so nothing changes there.
  • Known ceiling (marked ponytail: in the code): any namespace counts once the family has a third-party supplier. The page names suppliers in Chinese, not as listing namespaces, so the namespace itself is not checked.

Where #716 stands (gap report, 2026-12-04)

provider chat endpoint note
kimi-code-plan-cn / -global 6/6, 6/6 docs parser, #733
google-vertex-anthropic 13/13 docs parser, #733
nvidia 19/19 done
lovable 24/30 6 Claude rows list only the messages surface. Lovable's docs state no path for it, and we hold no LOVABLE_API_KEY.
dashscope-cn 91/131 → 103/131 expected this PR

dashscope-cn rows still unbound after this PR (28):

  • 12 the docs put on another protocol (Qwen-Audio, Omni-Realtime, Deep Research). Correctly unbound.
  • 16 the compat line does not name: ZHIPU/GLM-* (6), stepfun/* (3), xiaomi/* (2), antdigital/*, unisound/*, Xing/*, tongyi-xiaomi-analysis-* (2).

A probe could settle those 16 and lovable's 6. The compat page even gives the refusal wording (current user api does not support http call, a 400), so it would fit the expected-400 rule. It needs a Beijing-region key plus workspace id, and a Lovable key. Our DASHSCOPE_API_KEY is the Singapore key.

No row here is probe-verified, so the verifiedAt acceptance item does not apply: these are docs-derived.

Verification

pnpm run test (265 files, 2759 tests), typecheck, lint and check pass. On the committed fixture, bound chat rows go from 159 to 171. No live provider request was sent beyond reading the public docs page and the keyless Lovable listing.

Summary by CodeRabbit

  • Bug Fixes
    • DashScope China compatibility now recognizes supported third-party DeepSeek, Kimi, and MiniMax model families.
    • Supplier-prefixed DeepSeek models, including SiliconFlow’s DeepSeek models, can now use the compatible chat endpoint.
    • Model IDs from unsupported suppliers, such as GLM and StepFun, are not incorrectly matched to these supported families.
    • More DashScope China chat models are now recognized as having schema endpoint support.

@changeset-bot

changeset-bot Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 6836273

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Dec 4, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The DashScope China compatibility parser now records selected third-party model families. Compatibility matching uses those families for supplier-prefixed model IDs. Provider expectations and the parsed-docs cache version are updated.

Changes: DashScope China compatibility

Layer / File(s) Summary
Third-party family scope
src/server/providers/dashscope-compat.ts, src/server/providers/dashscope-cn-compat.ts, src/server/providers/dashscope-cn-compat.test.ts
DashscopeCompatScope gains an optional thirdParty list. The China parser populates it with lowercased family names whose notes contain a direct-supply entry other than 阿里云直供. Tests expect DeepSeek, Kimi, and MiniMax in the parsed scope.
Supplier-namespaced matching and provider expectations
src/server/providers/dashscope-compat.ts, src/server/providers/dashscope-cn.test.ts, src/server/providers/model-facts.ts
dashscopeCompatCovers checks the model segment of supplier-prefixed IDs against thirdParty families. Provider tests expect siliconflow/deepseek-v3.2 to use the compatible chat endpoint, and raise the schema-endpoint chat model count from 159 to 171. The parsed-docs cache version changes from v54 to v55.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related issues

  • TanStack/schemas issue 716 — This change adds compatibility coverage for supplier-namespaced DeepSeek IDs, but does not add the probe described in the issue context.
Merge Risk: Minimal · up to 68362

This change binds additional DashScope China chat rows from documented third-party suppliers and invalidates the cached parsed docs. No merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the main change: binding dashscope-cn DeepSeek chat rows from the third-party suppliers that the compatibility page names. The raw summary shows the changes to parseDashscopeCnCompat, …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: binding dashscope-cn DeepSeek chat rows from the third-party suppliers that the compatibility page names. The raw summary shows the changes to parseDashscopeCnCompat, dashscopeCompatCovers, DashscopeCompatScope.thirdParty, the test expectations (159 to 171), and the cache version bump, all of which serve that goal. The title is specific and concise, and it matches the PR objectives.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3a248c9a-cfdb-4a78-b9a5-cb86d2cecc75
Commits

Reviewing files that changed from the base of the PR and between 9c3663f and 6836273.

Files selected for processing: 1

  • src/server/providers/model-facts.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

tombeckenham added a commit that referenced this pull request Dec 4, 2026
* Keep a host's own-namespace rows out of name inference (#746)
…dpoint-for-providers-with-no-schemaendpoint

# Conflicts:
#	src/server/providers/model-facts.ts
@tombeckenham
tombeckenham merged commit 1836853 into main Dec 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant