Fix gpt-5.4 context length resolution for Codex - #5174
Conversation
1 similar comment
|
Thanks for identifying the stale 32K cache path; that specific gap is still present on current main. Problems
Suggested changes
Automated hermes-sweeper review. |
|
Heads up: this looks like it landed on main via #68554 (commit 64702f8) — both prevent a stale Codex OAuth context cache from short-circuiting provider-aware resolution; main’s |
Related to merged #68554: current main now bypasses persistent |
Summary
openai-codexand inferred OpenAI endpoints to the models.devopenairegistrygpt-5.4@https://chatgpt.com/backend-api/codex = 32000cache caseProblem
Hermes can show
gpt-5.4with a32kcontext window in Codex-backed setups.I reproduced a bad persisted cache entry locally:
gpt-5.4@https://chatgpt.com/backend-api/codex: 32000OpenAI's current model docs list
gpt-5.4at1,050,000context and128,000max output tokens, so the cached32000value is incorrect.Testing
pytest -q -o addopts='' tests/agent/test_models_dev.py tests/agent/test_model_metadata.py