feat(llm): 新增 StepFun 供应商预设;修复 Codex OAuth 默认模型不可用 - #836
Merged
Conversation
StepFun 预设: - 供应商下拉新增 StepFun(阶跃星辰),预填 https://api.stepfun.com/v1, 默认模型 step-1o-turbo-vision(无思考,流式首字 ~0.3s;step-3.x-flash 系列为推理模型且思考无法关闭,正式内容需等隐藏思考结束,不适合听写润色) - thinking 控制表新增 stepfun → reasoning_effort(开=medium / 关=low), base_url 兜底识别同步支持"自定义"preset 接入 StepFun 的场景 - 补默认 endpoint 映射与两个单元测试 Codex OAuth 默认模型: - gpt-5.3-codex-spark 对 ChatGPT 账号会被后端 400 拒绝 ("model is not supported when using Codex with a ChatGPT account"), 导致每次润色静默失败回退原文;默认与占位改为实测可用的 gpt-5.5 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
User description
背景
两个实际使用中撞上的问题:
gpt-5.3-codex-spark对 ChatGPT 账号的 Codex 通道会被后端 400 拒绝(The 'gpt-5.3-codex-spark' model is not supported when using Codex with a ChatGPT account)。每次润色都失败并静默回退原文,用户只会觉得"模型没处理"。api.stepfun.com),而热门的 step-3.x-flash 系列是思考无法关闭的推理模型,润色一次 5–13 秒。改动
新增 StepFun(阶跃星辰)LLM 供应商预设
https://api.stepfun.com/v1,默认模型step-1o-turbo-visionllm_provider_default_endpoint补映射默认模型选型依据(真实润色 prompt 实测):
thinking 控制支持 StepFun
openai_compatible_thinking_control新增stepfun → ReasoningEffort(官方参数:开=medium / 关=low)stepfun关键字,覆盖用"自定义"preset 接入的存量用户Codex OAuth 默认模型改为 gpt-5.5
CODEX_DEFAULT_MODEL与前端占位从gpt-5.3-codex-spark改为实测可用的gpt-5.5,常量处注释记录 400 拒绝原因验证
cargo test --lib polish:72 通过(含 2 个新测试)tsc --noEmit、vite build无错🤖 Generated with Claude Code
PR Type
Enhancement, Bug fix
Description
Add StepFun (阶跃星辰) LLM provider preset with default model
Fix Codex OAuth default model causing silent failure
Enable "thinking" control for StepFun via reasoning_effort
Add i18n translations for StepFun across 5 languages
File Walkthrough
3 files
Add StepFun default endpoint mappingFix Codex default model; add StepFun thinking control & testsAdd StepFun preset; fix Codex placeholder model5 files
Add StepFun English translationAdd StepFun Japanese translationAdd StepFun Korean translationAdd StepFun Simplified Chinese translationAdd StepFun Traditional Chinese translation