Add OpenAI chat-latest model metadata - #27478
Conversation
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Greptile SummaryThis PR adds
Confidence Score: 5/5Safe to merge — the change is a JSON metadata addition with no logic changes and a dedicated test confirming correctness. All three files make isolated, additive changes: two JSON entries and one new test file. The pricing values were verified against the OpenAI pricing page, token limits follow the established GPT-5.x convention, and the backup JSON mirrors the root exactly as confirmed by the parity test. No existing behavior is modified. No files require special attention.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds chat-latest entry with correct pricing ($5/$0.50/$30 per M tokens), token limits (272K input / 128K output), and capability flags; consistent with existing GPT-5.x conventions. |
| litellm/model_prices_and_context_window_backup.json | Identical chat-latest entry as the root JSON; backup stays in sync, verified by the new parity test. |
| tests/test_litellm/test_openai_chat_latest_model_metadata.py | New focused tests: one validates all metadata fields for chat-latest and its provider routing; a second asserts parity between root and backup JSON. No network calls — passes the mock-only rule. |
Reviews (2): Last reviewed commit: "Add OpenAI chat-latest model metadata" | Re-trigger Greptile
|
@greptile review again |
|
@ishaan-berri, is there anything else I can do for it? Thanks. |
|
🤖 litellm-agent: Auto-merge skipped — the staging branch Please rebase your branch onto |
3df8efe to
bb78d02
Compare
bb78d02 to
d3c484e
Compare
|
@Sameerlite, is there anything I can do to make it right? |
|
Hi @Sameerlite, I opened a fresh replacement PR targeting |
Relevant issues
N/A
Linear ticket
N/A
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/test_litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unit@greptileaiand received a Confidence Score of at least 4/5 before requesting a maintainer reviewDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
CI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Screenshots / Proof of Fix
Tested locally:
Automated review:
Reference docs:
Type
✅ Test
Changes
Adds OpenAI
chat-latestmetadata to the root model pricing map and thepackaged backup map.
The new entry includes token limits, pricing, endpoint support, modal
support, and hosted tool capability metadata, including file search and
web search cost tracking.
Adds a focused test covering:
chat-latestmodel metadata and routing through the OpenAI provider