Skip to content

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

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

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

Conversation

@zszz3

@zszz3 zszz3 commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

变更

服务商设置新增 StepFun Plan(订阅),使用 https://api.stepfun.com/step_plan/v1 和 Chat Completions,让 Step API key 能正确发现、保存并使用 step-5-preview。选择器只保留订阅预设;已有普通 API 自定义服务保持原地址和配置。

  • 补齐 Step 5 Preview 官方能力:1,024,000 输入上下文、64,000 输出上限、图片、工具调用及 low/medium/high 推理。补充仅作用于精确匹配的官方普通 API / Step Plan 地址和模型 ID;第一方 models.dev 记录及用户覆盖继续优先,不凭空添加可用模型。
  • 修复保存设置时的 infiniteProviderRetry is invalid:主进程和渲染进程读取关闭或缺省值时统一返回 false,使“读取设置 → 修改其他选项 → 保存”通过原有严格校验,不放宽非法类型检查。
  • 同步 8 种语言名称、使用指南、规范和 ADR;不涉及数据库迁移。

当前候选验证(2026-09-22)

候选提交:0fdbc157be1cef4dd771a6d3b0bdacf29ccf3de6;已纳入目标 main:5c7e67aecdbf87d5363484f0215b03741ddc225f

本次保留冲突双方的文档/运行时导入,功能语义不变,没有新增测试。同步主线锁定的依赖后,JS 和 Rust 构建、桌面类型检查、lint、文档、差异及主线包含检查通过。现有设置、目录及生图相关测试 36 项通过。 隔离 Electron 启动检查通过(800 会话、preload / IPC)。

环境:macOS,Electron 43.6.0;安装后缺失的 Electron 二进制复用本机同版本缓存。未调用真实模型服务、未使用生产数据、未运行 verify:ui:*。本次运行相关既有测试,没有重复全量套件;此前版本结果不作为当前全量通过结论。CI 以最新提交为准。本次仅解决冲突并更新 PR,不合并。

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.
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