You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e455f34
Browse filesBrowse the repository at this point in the historyBrowse files
fix(pricing): resolve Codex log model aliases (#1301)
* fix(pricing): price codex auto review logs
Codex session logs can record codex-auto-review as the model name for review runs, but LiteLLM and the embedded pricing table do not publish that identifier directly.
Resolve the internal review model to the latest embedded Codex pricing so reports keep the raw model label while still calculating cost and avoiding missing-pricing warnings.
* fix(pricing): resolve Codex model aliases
Codex logs can contain internal or shortened model identifiers that are not published as pricing keys. Treat these as model-name aliases instead of adding duplicated pricing rows.
The fallback now preserves the raw model label in reports while resolving codex-auto-review to gpt-5.5 and gpt-5.3-spark to the existing gpt-5.3-codex-spark pricing path.
* fix(pricing): alias Codex context limits
CodeRabbit pointed out that model aliases resolved pricing but not context limits, which made alias handling asymmetric for callers that ask for context-window metadata.
Route context limit lookup through the same model alias path as pricing, and make the alias tests cover the context limit behavior with clearer failure messages.
0 commit comments