feat(openai): add pricing for the Codex and chat-latest models - #3836
Closed
alexander-bal wants to merge 1 commit into
Closed
feat(openai): add pricing for the Codex and chat-latest models#3836alexander-bal wants to merge 1 commit into
alexander-bal wants to merge 1 commit into
Conversation
The `models/openai/` metadata for these seven already exists, but no provider entry serves them, so they are absent from the openai provider in api.json and anything reading it has no price to use. Each is a `base_model` entry carrying only `[cost]`, plus the `reasoning_options` the schema requires. Only gpt-5.2-codex documents its accepted effort values, so the rest use an empty array per the contribution guidelines rather than assert values that are not published.
Contributor
Action items
|
Collaborator
|
Thanks for the PR — prices look correct against the specialized models table, and the They were intentionally removed in #3707 after OpenAI's 2026-07-23 shutdown (deprecations, 2026-04-22 notice):
Re-adding them would put dead IDs back in the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds provider entries for seven OpenAI models that have
models/openai/metadata but noproviders/openai/models/entry, so they never appear under theopenaiprovider inapi.jsonand consumers have no price for them:gpt-5-codexgpt-5.1-codexgpt-5.1-codex-maxgpt-5.1-codex-minigpt-5.2-codexgpt-5-chat-latestgpt-5.1-chat-latestThe
gpt-5.3generation onward is already covered —gpt-5.3-codex,gpt-5.3-codex-spark,gpt-5.2-chat-latestandgpt-5.3-chat-latestall have provider entries. These seven are the ones below that line.Source
Prices are from OpenAI's published price list, standard tier: https://developers.openai.com/api/docs/pricing
Each file cites it in a leading comment block, per the guideline that only a leading header survives the sync rewrite.
Notes
Every entry uses
base_model, sincemodels/openai/<id>.tomlexists for all seven — no provider-agnostic facts are duplicated inline.reasoning_optionsis declared because the inherited metadata setsreasoning = trueand the schema requires it. Only thegpt-5.2-codexmodel page publishes its accepted effort values (low,medium,high,xhigh), so that one is filled in; the other six usereasoning_options = []per the guideline to leave it empty rather than assert a control that is not documented. Happy to fill those in if you have a source I missed.bun validatepasses.