Repository navigation
fix(providers): list GPT-6.2 models for ChatGPT accounts - #2414
Merged
Merged
Conversation
ChatGPT's /codex/models hides every model whose minimum Codex client is newer than the client_version query parameter. Codex's catalog sets 0.166.0 for gpt-6.2-sol and gpt-6.2-astra, and the pinned value was still 0.159.2, so signed-in Plus/Pro accounts never saw either model even though Codex itself offers them. Pin the current Codex CLI release, 0.169.1, and guard the floor that GPT-6.2 needs with a test. fixes vastsa#2411
Contributor
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.


fixes #2411
问题
ChatGPT Plus/Pro 账号的模型列表来自
GET /codex/models?client_version=…。这个接口会把"最低 Codex 客户端版本高于client_version"的模型藏起来。Codex 自带的模型目录(
codex-rs/models-manager/models.json)里,gpt-6.2-sol和gpt-6.2-astra的minimal_client_version是0.166.0,而我们写死的CODEX_MODELS_CLIENT_VERSION还是0.159.2。所以 Codex 里能用这两个模型,PI-Desktop 的模型列表里却拿不到。修改
CODEX_MODELS_CLIENT_VERSION改为当前最新的 Codex CLI 正式版0.169.1(npm@openai/codexlatest,2026-11-17),注释写明原因。client_version不能低于 GPT-6.2 需要的0.166.0。改回0.159.2时这个测试失败。docs/spec/03-runtime/11-provider-model-system.md补一句说明。没有改模型列表的解析逻辑。之前
gpt-6-luna就是这样:接口返回了,就能直接选,不需要更新 pi-ai。验证
vendor-live-models.test.mjs和vendor-oauth-login.test.mjs:48/48 通过;把版本改回0.159.2时新测试失败。build:js、desktop typecheck、lint、docs:check、git diff --check:通过。