Skip to content

feat(providers): 支持 StepFun Plan 与 Step 5 Preview - #763

Closed
zszz3 wants to merge 18 commits into
vastsa:mainfrom
zszz3:codex/step5-preview
Closed

zszz3 wants to merge 18 commits into
vastsa:mainfrom
zszz3:codex/step5-preview

Conversation

@zszz3

@zszz3 zszz3 commented Sep 21, 2026 •

Copy link
Copy Markdown
Contributor

变更

新增 StepFun Plan(订阅) 预设,默认使用 Anthropic Messages。设置地址保留 https://api.stepfun.com/step_plan/v1,现有运行时去掉末尾 /v1 后交给 Anthropic SDK,请求最终到 /step_plan/v1/messages。

Step 5 Preview 使用精确官方端点限定的能力补充:1,024,000 输入上下文、64,000 输出上限、图片、工具调用、low/medium/high 推理。第一方 models.dev 记录及用户覆盖继续优先,补充不改变模型可用性。同步 9 种语言名称、规范和 ADR,无数据库迁移。

CI 修复

  • 补齐现有消息展示测试缺失的 MessageTimestamp 替身,修复远端 4 个失败用例。
  • 同步最新主线语音功能遗漏的锁文件;将 IPC 返回值、设置保存调用、Hugging Face Blob 下载接口与实际类型对齐;使用现有样式 token,将语音初始化/退出清理放回服务模块以满足入口体积限制。
  • 现有打包断言继续禁止 node-pty,允许语音原生模块解包;现有两轮真实 HTTP 重试用例单独延长超时至 20 秒,保留全部行为断言。
  • 修复最新主线在 8 个语言文件中把新字段插入旧字段名和值之间造成的语法错误。

没有新增测试文件或测试用例。已有用例仅修复上述替身、断言和超时。

验证

后续文档提交 5a04e9e84 删除未发布预设的旧配置兼容说明,文档检查通过;运行代码未变。以下为代码候选的验证记录。

候选:4345c9b79b4c5503174dd43adc5119ee96a70ef7;目标 main:67a6467146a227d045b6998ee62b2e5e8bbc1171。

  • 工作区构建、Desktop 类型检查、lint、架构检查、文档检查(517 页)通过。
  • pnpm -r --if-present test 全部通过(Desktop 2,748 项、agent-runtime 1,054 项及其他工作区包)。随后同步主线设置编辑器及语音修复,再跑 Desktop 全量 2,748 项、voice-runtime 39 项及设置编辑器 11 项;Desktop 构建/类型检查/lint/架构检查重新通过。
  • 当前候选的隔离 Electron 启动、沙箱 IPC、800 会话响应性和中英文 provider API format E2E 通过。
  • 临时离线检查确认 StepFun Anthropic 请求路径;Hugging Face Blob 下载字节、进度和取消传播正常。
  • frozen lockfile 验证和 pnpm check:pr-base --base upstream/main 通过。目标为 vastsa 上游 main;origin 是个人 fork。

环境:macOS arm64,独立 worktree,复用现有 Electron 43.6.0/host-core。因新主线依赖缺失而更新依赖并生成锁文件。没有 Rust 差异,本地未重复 Rust 全量检查;远端 CI 执行 Rust 检查。未调用真实模型、付费接口或用户运行中的桌面实例;未运行 verify:ui:*。PR 保持打开,不合并。

远端检查已全部通过:CI(JS + Rust)、Docs、PR base。GitHub 合并候选与当前 head 的文件树一致。

Fixes #738

Make the official StepFun endpoint selectable and preserve its model
capabilities while first-party catalog coverage is incomplete. Keep
reseller metadata separate and retain user overrides and safety limits.

Cover discovery, saved bindings, reasoning replay and tool continuation
through the real adapter, with no credentials in fixtures.

fixes vastsa#738
Route the service preset to the subscription endpoint so Step API keys
can discover Step 5 Preview. Keep saved ordinary endpoints unchanged.

Normalize disabled retry settings to false on both read paths so an
unrelated settings edit can pass the existing strict write validation.
Validate the provider and settings changes against the current target branch.
Keep the request head current with the target branch before publishing.
@zszz3 zszz3 changed the title feat(providers): 支持阶跃星辰 Step 5 Preview feat(providers): 支持 StepFun Plan 与 Step 5 Preview Sep 21, 2026
Retain both provider settings and URL regression scenarios when merging
current upstream changes into the request branch.
Honor the requested scope by retaining the existing test suite and
removing the new provider and settings cases and their coverage claims.
Production behavior remains unchanged.
Retain both model capabilities when incorporating the latest upstream documentation and implementation.
Preserve the request behavior alongside the latest hosted search contracts and runtime imports.
Preserve the StepFun first-party metadata supplement while integrating
the indexed catalog matcher and vendor-prefix helpers from main.
Keep both lookup paths available without changing provider behavior.
Integrate current main without dropping its rejection of ambiguous
cross-provider metadata. Keep the narrowly scoped StepFun supplement
and first-party catalog precedence ahead of the guarded fallback.

Retain both provider documentation sections and supply the StepFun Plan
label for the new Brazilian Portuguese locale.
Keep the provider candidate aligned with current upstream before changing its default transport.
Preserve explicitly saved OpenAI accounts while using the existing Anthropic adapter for new StepFun Plan entries.

Restore CI after upstream voice integration: synchronize dependencies, align SDK and IPC contracts, reuse settings persistence, and keep lifecycle wiring within the entrypoint budget. Repair existing fixture assumptions and allow bounded real-transport retries enough time to finish.
Include the latest settings changes before final candidate validation.
The latest upstream change inserted the active-template label between a multiline property name and its value. Keep each property intact so all locales compile.
Apply the same multiline property correction to the three locale catalogs using quoted keys.
Refresh the StepFun candidate against the current target without rewriting shared commits.
Keep upstream settings layout and IPC updates while preserving typed settings persistence and the actual Hugging Face Blob download contract.
Document Anthropic Messages directly for the unreleased preset without promising a legacy OpenAI configuration transition.
@zszz3

zszz3 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor Author

已由新的修复 PR #1139 替代,本 PR 关闭。新 PR 基于最新主线,保留 StepFun Plan 订阅端点配置及正确的 Anthropic 请求路径;Step 5 Preview 元数据已由当前第一方 models.dev 目录提供,因此移除了旧硬编码补充以及无关的语音、锁文件和 CI 修复。验证结果和基线限制已在 #1139 中说明。

@zszz3 zszz3 closed this Sep 27, 2026
vastsa pushed a commit that referenced this pull request Sep 28, 2026
Expose the subscription endpoint in the service picker so its key is
paired with the Step Plan route and Anthropic Messages format. Bind it
to the existing first-party models.dev vendor record.

Reuse published model capabilities and existing runtime adapters instead
of carrying the obsolete Step 5 metadata supplement from PR #763.
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.

feat: 支持 StepFun Step 5 Preview 模型

1 participant