feat: add OpenAI Codex provider metadata - #3754
opencode-agent[bot] wants to merge 1 commit into
Conversation
Action items
|
|
Currently, the following models are offered (on Pro plan): gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4, gpt-5.4-mini, gpt-5.3-codex-spark. I believe we may need to introduce a way to gate models per-plan, as spark models are Pro-only. 5.6 Sol, Terra, and Luna offer low, medium, high, xhigh, max, and ultra. Also also likely none, even if not exposed through Codex. I believe ultra is also Pro-only. For 5.5/5.4/5.4-mini/5.3-codex-spark, low, medium, high, and xhigh are offered. None also probably. I think keeping this to 5.6 models makes sense though, as those are what most users will want to use. |
|
Closing this pull request as stale because it has not been updated in 30 days. Feel free to reopen it or submit a new pull request if the work is resumed. |
Summary
openai-codexprovider for ChatGPT subscription models served through the Codex backend400K context / 272K input / 128K outputlimitsOpenAI corrected the GPT-5.6 Codex window to 272K in Codex 0.144.6. Keeping this metadata separate preserves the direct OpenAI API models' 1.05M context window and gives harnesses a canonical route-specific source.
Sources:
@rekram1-node, this is the model-catalog half of the GPT-5.6 Sol compaction failure Kit reproduced through ChatGPT OAuth.
Verification
bun validatebun test packages/core/test/schema.test.tsFixes #3183
Requested by: @kitlangton (Kit via Slack)