Repository navigation
feat: add StepFun Step Plan China support - #916
Merged
Merged
Conversation
This was referenced Jul 13, 2026
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
stepfun-step-plan, with its dedicated endpoint, credential namespace, exact current model snapshot, and honest fallback discovery.Why
Refs #860. StepFun Step Plan is a separate China subscription product with its own endpoint, key, account balance, and supported model set. It must not be conflated with StepFun China direct API, StepFun Global direct API, or a future Global Step Plan identity.
Scope
This PR only adds StepFun Step Plan China under
stepfun-step-plan. It does not add or modify China directstepfun, Global directstepfun-ai, Global Step Plan, other providers, or Phase 7 work. The provider uses snapshot fallback because the public Step Plan contract does not promise a/modelsendpoint.Verification
npm test— passed across Core, Storage, Runtime, Computer Use, Headless, CLI, UI, and Desktop.npm run typecheck— passed for every workspace.npm run build— passed, including the renderer build and byte-identical third-party notice check.node --test scripts/sync-model-metadata.test.mjs— 15/15 passed.npm run check:stale— passed (dist is fresh).git diff --check origin/main...HEAD— passed.f46fbd1eee00a3dc7874395484bcc3e25a803e9eb4b79f07b7eec377a1e2f25c, and neither the SVG norTHIRD_PARTY_LICENSES.txtchanged.ProviderAssetMaskandcurrentColorbrand path.Impact
Users with a StepFun Step Plan China subscription can configure its independent key and endpoint and select its officially supported agent models across Desktop and CLI/headless hosts. Existing provider IDs and credentials are unchanged; no migration is required.
Reviewer notes
Review the provider registry as the single owner of identity, ordering, endpoint, auth, discovery, and model snapshot. The deterministic runtime test locks reasoning replay plus the assistant tool-call/tool-result continuation without relying on undocumented
/modelsbehavior. The Desktop path deliberately reuses the existing byte-identical StepFun SVG and notice provenance.Ready for review
Verificationexplains why it is not applicable