Skip to content

(feat)Add GPT-5.4 and GPT-5.3-Codex model support#157

Merged
lofcz merged 2 commits intolofcz:masterfrom
tobitege:feat_openai_gpt54_codex53
Mar 7, 2026
Merged

(feat)Add GPT-5.4 and GPT-5.3-Codex model support#157
lofcz merged 2 commits intolofcz:masterfrom
tobitege:feat_openai_gpt54_codex53

Conversation

@tobitege
Copy link
Contributor

@tobitege tobitege commented Mar 7, 2026

Add gpt-5.4 support, add gpt-5.3-codex, and clean up stale OpenAI model references

This PR updates the OpenAI model catalog to match what is actually available today.

What changed:

  • Added support for gpt-5.4 and gpt-5.4-pro
  • Added support for gpt-5.3-codex
  • Removed the old placeholder GPT-5.3 family that was never publicly available as a normal OpenAI model
  • Updated provider mappings for the new models where they are supported
  • Fixed a README example that still used gpt-4o as a string model name and changed it to gpt-5-mini

Why:

  • gpt-5.4 is now the current public GPT-5.4 line and should be available in the SDK
  • gpt-5.3-codex has been public for a while and was missing
  • The previous GPT-5.3 non-codex entry was misleading because that model was never actually public
  • The README example used a model string that has been retired (gpt-4o)

Notes:

  • gpt-5.4 was added with the same compatibility handling style already used for other GPT-5.x models
  • gpt-5.3-codex was added through the codex-specific path, not by reintroducing a fake general GPT-5.3 model family
  • Fixed test PreservesOrder_WithChunkSplitting_MultipleSummaries:
    The test intended to verify the multi-summary path, but its ChunkSize assumed character-based splitting while the summarizer actually splits on estimated tokens.
    Lowering the chunk size and updating the comments preserves the original six-message expectation while making the setup match the implementation.

tobitege added 2 commits March 7, 2026 16:08
Add GPT-5.4 and GPT-5.4-pro across the OpenAI model catalog and provider mappings.

Add GPT-5.3-Codex through the codex-specific OpenAI path and expose matching OpenRouter and Requesty entries.

Remove the placeholder GPT-5.3 non-codex family that was never publicly available and update the README string-model example to use gpt-5-mini.
Adjust the context window summarizer order test to use a token-sized chunk threshold that actually exercises the multi-summary path.

Keep the original six-message expectation while updating the comments to reflect token-based chunking.
@lofcz
Copy link
Owner

lofcz commented Mar 7, 2026

thanks

@lofcz lofcz merged commit 2975c15 into lofcz:master Mar 7, 2026
6 checks passed
@tobitege tobitege deleted the feat_openai_gpt54_codex53 branch March 7, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants