Skip to content

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

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

zszz3 wants to merge 7 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;不涉及数据库迁移。

本次冲突解决与验证

候选提交:0ca82634f112747941f955383bdbd32144706a37;目标 main:43a3737352b652dd8d01a784c04ab2d53202a305

保留本 PR 功能和主线的生图能力及文档。本次未新增测试。

JS 构建、桌面类型检查、lint、文档检查、差异检查、主线包含检查通过。现有设置、目录及生图相关测试 36 项通过。 隔离 Electron 启动检查通过(800 会话、preload / IPC)。环境为 macOS;未使用真实模型服务,未运行 verify:ui:*。本次未重跑全量套件,下列旧验证仅对应其注明的提交。当前 CI 以最新提交为准;仅更新 PR,不合并。

此前验证记录

当前提交:a6dbf0e8b81b5ce13cdff2991eaf0d58e2470676;已纳入目标 main 62a05d6b2e93c68ce3d9de0135785087b07c5cb2

按任务要求移除本 PR 新增的测试文件、测试用例和对应测试文档,保留主线原有测试。最终差异中没有测试代码改动。生产功能不变。

本次通过:现有桌面相关测试 33 项、现有模型能力测试、文档检查、差异检查及主线包含检查。

移除测试前的同一生产代码已通过 JS 构建、类型检查、lint、运行时检查和隔离 Electron 启动检查(800 会话、preload / IPC)。本次仅删测试和调整文档,未重复构建、启动验证或真实付费 API 调用;新功能专项用例已从最终差异移除,历史专项结果不代表最终分支仍保留这些回归覆盖。

此前经授权的 Step Plan /models 验证返回 200,包含 step-5-preview。密钥和本机用户数据未纳入提交。

此前已在基线复现的额外检查失败(429 重试用例超时、provider-api-style 的 missing click target)未在本次修复或复跑。未运行 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.
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