fix(frontend): default Codex/CC Switch key templates to gpt-5.6#4032
Open
DylanChiang-Dev wants to merge 1 commit into
Open
fix(frontend): default Codex/CC Switch key templates to gpt-5.6#4032DylanChiang-Dev wants to merge 1 commit into
DylanChiang-Dev wants to merge 1 commit into
Conversation
The Codex CLI config template (UseKeyModal.vue) and the CC Switch import deeplink (ccswitchImport.ts) both hardcoded gpt-5.5 as the default model. GPT-5.6 is already listed in the openaiModels map and recognized by backend pricing, so users copying these configs got a stale gpt-5.5 pin with no hint 5.6 was available. Bump both defaults (model + review_model) to gpt-5.6 and update the corresponding specs. Refs Wei-Shaw#4029
Contributor
|
All contributors have signed the CLA. ✅ |
Author
|
I have read the CLA Document and I hereby sign the CLA |
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.
Closes #4029
English
Two frontend spots hardcoded
gpt-5.5as the Codex default model, both stale now that GPT-5.6 is available and already present in theopenaiModelsmap / backend pricing:frontend/src/components/keys/UseKeyModal.vue—generateOpenAIFiles()andgenerateOpenAIWsFiles()(the "Codex CLI" and "Codex CLI (WebSocket)" tabs) emittedmodel = "gpt-5.5"/review_model = "gpt-5.5".frontend/src/utils/ccswitchImport.ts—OPENAI_CC_SWITCH_CODEX_MODEL = "gpt-5.5", used for the CC Switch import deeplink.Users copying the generated Codex config or importing into CC Switch got a config pinned to
gpt-5.5with no hint that 5.6 exists, and had to edit it by hand.Change
Bump both defaults (
model+review_model) togpt-5.6, and update the corresponding specs (UseKeyModal.spec.ts,ccswitchImport.spec.ts).This is a minimal literal bump. A follow-up could source the default from
openaiModelsso it never drifts again, but that is a larger refactor and left out here to keep the change focused.Testing
vitest runon the two affected spec files — 10 tests pass.中文
前端有两处把
gpt-5.5写死为 Codex 的默认模型,在 GPT-5.6 已可用(且已存在于openaiModels与后端定价数据)的情况下都已过时:frontend/src/components/keys/UseKeyModal.vue——generateOpenAIFiles()与generateOpenAIWsFiles()("Codex CLI" 与 "Codex CLI (WebSocket)" 分页)输出model = "gpt-5.5"/review_model = "gpt-5.5"。frontend/src/utils/ccswitchImport.ts——OPENAI_CC_SWITCH_CODEX_MODEL = "gpt-5.5",用于 CC Switch 导入 deeplink。用户复制生成的 Codex 配置、或导入到 CC Switch 后,得到的是写死在
gpt-5.5上的配置,没有任何提示 5.6 已可用,只能手动修改。改动
将两处默认值(
model+review_model)提升到gpt-5.6,并同步更新对应测试(UseKeyModal.spec.ts、ccswitchImport.spec.ts)。这是最小的字面量提升。后续可以让默认值直接从
openaiModels读取以彻底避免再次过时,但那是更大的重构,本 PR 为保持聚焦未纳入。测试
对两个受影响的测试文件运行
vitest run—— 10 个测试全部通过。