Skip to content

[Platform][Codex] Align model catalog with official docs#1982

Merged
chr-hertel merged 1 commit intosymfony:mainfrom
wachterjohannes:codex-align-model-catalog
Apr 22, 2026
Merged

[Platform][Codex] Align model catalog with official docs#1982
chr-hertel merged 1 commit intosymfony:mainfrom
wachterjohannes:codex-align-model-catalog

Conversation

@wachterjohannes
Copy link
Copy Markdown
Contributor

@wachterjohannes wachterjohannes commented Apr 21, 2026

Q A
Bug fix? yes
New feature? no
Docs? no
Issues -
License MIT

The Codex ModelCatalog listed several models that the Codex CLI no longer accepts with a ChatGPT account — calling them returns:

The 'gpt-5-codex' model is not supported when using Codex with a ChatGPT account.

This surfaced while trying to run the bundled examples/codex/*.php scripts, all four of which hardcoded gpt-5-codex and therefore failed end-to-end.

Aligning the catalog with the official list at https://developers.openai.com/codex/models:

  • Keep: gpt-5.4, gpt-5.4-mini, gpt-5.3-codex, gpt-5.3-codex-spark
  • Add: gpt-5.2
  • Remove: gpt-5.2-codex, gpt-5.1-codex, gpt-5-codex, gpt-5-codex-mini

Also:

  • Adds a @see https://developers.openai.com/codex/models link to the ModelCatalog PHPDoc header so the source of truth is easy to find.
  • Switches the four examples from gpt-5-codex to gpt-5.4 (the currently recommended default). All four now run successfully (verified against a local Codex CLI 0.122.0 install).
  • Updates the ModelCatalogTest data provider to match.

@carsonbot carsonbot added Bug Something isn't working Platform Issues & PRs about the AI Platform component Status: Needs Review labels Apr 21, 2026
@chr-hertel
Copy link
Copy Markdown
Member

🎉

image

@chr-hertel
Copy link
Copy Markdown
Member

interesting tho: is it really a breaking change if those models are not around anymore anyways? using those models would break with v0.8.0 already, right?

Removes legacy Codex models that are no longer supported by the Codex
CLI (rejected with HTTP 400 on ChatGPT accounts) and adds `gpt-5.2` to
match the official list at https://developers.openai.com/codex/models.
Also updates the examples to use `gpt-5.4` (the recommended default)
instead of the removed `gpt-5-codex`.
@chr-hertel chr-hertel force-pushed the codex-align-model-catalog branch from 093190c to 5194826 Compare April 22, 2026 16:05
@chr-hertel
Copy link
Copy Markdown
Member

Thank you @wachterjohannes.

@chr-hertel chr-hertel merged commit bc0a9a3 into symfony:main Apr 22, 2026
14 checks passed
@wachterjohannes wachterjohannes deleted the codex-align-model-catalog branch April 22, 2026 16:24
@wachterjohannes
Copy link
Copy Markdown
Contributor Author

interesting tho: is it really a breaking change if those models are not around anymore anyways? using those models would break with v0.8.0 already, right?

yes it is a breaking change thats right have you added that to the upgrades?

@chr-hertel
Copy link
Copy Markdown
Member

Have not, patched it into 0.8.1

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

Labels

Bug Something isn't working Platform Issues & PRs about the AI Platform component Status: Reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants