fix(model-prices): restore gpt-4-0314#23753
Merged
Chesars merged 1 commit intoBerriAI:litellm_oss_staging_03_17_2026from Mar 17, 2026
Merged
fix(model-prices): restore gpt-4-0314#23753Chesars merged 1 commit intoBerriAI:litellm_oss_staging_03_17_2026from
Chesars merged 1 commit intoBerriAI:litellm_oss_staging_03_17_2026from
Conversation
The entry was accidentally dropped in commit 6bd7cd7 during a merge conflict resolution. The model is deprecated but still accessible for existing users until its shutdown date of 2026-03-26 per OpenAI docs. Fixes BerriAI#23738
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Contributor
Greptile SummaryThis PR restores the Key observations:
Confidence Score: 4/5
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Restores the gpt-4-0314 entry that was accidentally dropped in a merge conflict (commit 6bd7cd7). The restored entry is consistent with the last known good state, with the addition of deprecation_date: "2026-03-26". Two capability flags (supports_prompt_caching and supports_tool_choice) inherited from the original entry may be inaccurate for this pre-function-calling model, but this is a pre-existing concern, not a regression introduced by this PR. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["User calls litellm with model='gpt-4-0314'"] --> B["litellm looks up model_prices_and_context_window.json"]
B --> C{"Entry found?"}
C -- "Before this PR (entry missing)" --> D["KeyError / fallback behavior\nIncorrect cost calculation"]
C -- "After this PR (entry restored)" --> E["Returns pricing + metadata\ninput: 3e-05, output: 6e-05\nmax_tokens: 4096\ndeprecation_date: 2026-03-26"]
E --> F["Correct cost tracking & model info\nfor existing users until shutdown"]
Last reviewed commit: 5acceae
0be8085
into
BerriAI:litellm_oss_staging_03_17_2026
37 of 39 checks passed
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.
Relevant issues
Fixes #23738
Pre-Submission checklist
tests/test_litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unitType
🐛 Bug Fix
Changes
Restores
gpt-4-0314entry. Addeddeprecation_date: 2026-03-26per OpenAI docs.