fix: change model mismatch logs from WARNING to DEBUG#20994
Merged
AlexsanderHamir merged 1 commit intoBerriAI:mainfrom Feb 13, 2026
Merged
Conversation
Fixes BerriAI#20990 PR BerriAI#19943 added logging when the proxy overrides model names to prevent internal provider prefixes from leaking to clients. The behavior works correctly but logs a WARNING on every request with model mismatch. For high-traffic customers using model aliases or provider prefixes, this creates millions of warnings per day, flooding logs and causing disk space issues. Changed log level from WARNING to DEBUG since: - The model mismatch is expected behavior when using aliases - The override happens correctly regardless of log level - Operators can still enable with LITELLM_LOG=DEBUG for debugging Changes: - common_request_processing.py: 2 warnings -> debug (non-streaming) - proxy_server.py: 1 warning -> debug (streaming)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Greptile OverviewGreptile SummaryDowngrades 3 model-mismatch log messages from WARNING to DEBUG across the non-streaming (
Confidence Score: 5/5
|
| Filename | Overview |
|---|---|
| litellm/proxy/common_request_processing.py | Two verbose_proxy_logger.warning() calls changed to .debug() for model mismatch override messages. No behavioral change. |
| litellm/proxy/proxy_server.py | One verbose_proxy_logger.warning() changed to .debug() for streaming chunk model mismatch. Stale comment still references "warning". |
Contributor
Additional Comments (1)
|
AlexsanderHamir
approved these changes
Feb 13, 2026
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.
PR #19943 added logging when the proxy overrides model names to prevent internal provider prefixes from leaking to clients. The behavior works correctly but logs a WARNING on every request with model mismatch.
For high-traffic customers using model aliases or provider prefixes, this creates millions of warnings per day, flooding logs and causing disk space issues.
Changed log level from WARNING to DEBUG since:
Relevant issues
Fixes #20990
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/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 reviewCI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Type
🐛 Bug Fix
Changes