Skip to content

fix(codex): exclude -pro models from ChatGPT-account model list - #32612

Closed
devinoldenburg wants to merge 4 commits into
anomalyco:devfrom
devinoldenburg:fix/codex-exclude-pro-models-chatgpt-account
Closed

fix(codex): exclude -pro models from ChatGPT-account model list#32612
devinoldenburg wants to merge 4 commits into
anomalyco:devfrom
devinoldenburg:fix/codex-exclude-pro-models-chatgpt-account

Conversation

@devinoldenburg

@devinoldenburg devinoldenburg commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

.

devinoldenburg and others added 3 commits June 15, 2026 13:51
The OAuth model filter auto-allows any `gpt-<version>` model newer than 5.4
via a version heuristic. That heuristic lets `gpt-5.5-pro` (and other `-pro`
variants) appear as available for ChatGPT-account (OAuth) sessions, but the
Codex backend does not serve `-pro` models to ChatGPT accounts — they are
API-key only. Selecting one fails at request time with:

  Bad Request: The 'gpt-5.5-pro' model is not supported when using Codex
  with a ChatGPT account.

Extract the filter predicate into `isModelSupportedForChatGPTAccount` and
exclude `*-pro` ids from the heuristic path so these models no longer show up
as options for OAuth accounts. Explicitly allow-listed ids still take
precedence, so a future `-pro` model can be re-enabled by adding it there if
OpenAI starts serving it.

Fixes #26115
Address review feedback: `parseFloat` mis-orders multi-digit minor versions
(e.g. "5.10" parses as 5.1), so `gpt-5.10` would be wrongly excluded by the
`> 5.4` heuristic. Capture major and minor separately and compare as integers.
Added a regression test for the multi-digit minor case.
@rekram1-node

Copy link
Copy Markdown
Collaborator

closing in favor of simple solution

@devinoldenburg
devinoldenburg deleted the fix/codex-exclude-pro-models-chatgpt-account branch June 24, 2026 00:14
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours. needs:issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants