Commit bc0a9a3
committed
bug #1982 [Platform][Codex] Align model catalog with official docs (wachterjohannes)
This PR was merged into the main branch.
Discussion
----------
[Platform][Codex] Align model catalog with official docs
| 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.
Commits
-------
5194826 [Platform][Codex] Align model catalog with official docs7 files changed
Lines changed: 15 additions & 21 deletions
File tree
- examples/codex
- src/platform/src/Bridge/Codex
- Tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
4 | 9 | | |
5 | 10 | | |
6 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
18 | 22 | | |
19 | 23 | | |
20 | 24 | | |
| |||
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 55 | + | |
64 | 56 | | |
65 | 57 | | |
66 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 33 | + | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
| |||
0 commit comments