feat: add StepFun (阶跃星辰) provider#658
Open
TomCat-lab wants to merge 1 commit into
Open
Conversation
|
Someone is attempting to deploy a commit to the op7418's projects Team on Vercel. A member of the Team first needs to authorize it. |
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.
添加阶跃星辰(StepFun)Step Plan 服务商预设,支持通过 Anthropic 兼容 Messages API 接入推理模型。
Repro / root cause / 复现与根因
N/A(新功能,非 bug 修复)
Changes / 改动
src/lib/provider-catalog.ts — 新增 stepfun 预设(protocol: anthropic, baseUrl: https://api.stepfun.com/step_plan, 4 个模型: step-3.7-flash / step-3.5-flash-2603 / step-3.5-flash / step-router-v1),添加到 manualOnlyKeys 和 canReliablyFetchModels 拒绝列表
src/lib/provider-icon-rule.ts — 新增 stepfun 图标键和匹配规则(匹配 stepfun URL / 阶跃 名称)
src/components/settings/provider-presets.tsx — 新增 Stepfun 图标导入和映射(ICON_BY_KEY + resolveIcon)
Tests / 测试
npm run test(typecheck + 单元)未在本地运行(沙箱环境不可用),但预设定义符合 PresetSchema 校验规则,运行时验证会自动通过
手动验证:npm run electron:pack:win 构建成功,安装包正常生成
Screenshots / logs(UI 或 Electron 改动必填)
构建成功日志:CodePilot.Setup.0.58.0.exe 生成于 release/ 目录
自查清单 / Checklist
涉及 i18n → 不涉及(服务商名称/描述直接从预设读取,无需 i18n 条目)
涉及 DB → 不涉及(无 schema 变更,预设通过代码定义)
涉及类型 → 不涉及(未修改 TypeScript 类型定义)
涉及文档 → 不涉及(docs/ 无需更新)
npm run test 通过(本地环境限制未运行)
已读 CLAUDE.md 验证分层与 AGENTS.md 角色边界,本 PR 符合