fix: Prevents DB from accidentally overriding config file values if they are empty in DB - #15340
Merged
5 commits merged intoOct 10, 2025
Merged
5 commits merged into
5 commits merged into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ghost
marked this pull request as draft
October 8, 2025 20:47
ARajan1084
force-pushed
the
litellm_db_config_accidental_override_fix
branch
from
October 8, 2025 21:42
867d382 to
ce8a520
Compare
ARajan1084
marked this pull request as ready for review
October 8, 2025 21:42
ghost
reviewed
Oct 8, 2025
fzowl
pushed a commit
to fzowl/litellm
that referenced
this pull request
Jun 24, 2026
…ental_override_fix fix: Prevents DB from accidentally overriding config file values if they are empty in DB
This pull request was closed.
This branch was successfully deployed
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.
fix: Prevents DB from accidentally overriding config file values if they are empty in DB
During proxy server initialization, any configuration values in the DB would override config values in
config.yaml. This would be problematic, especially when the DB value was an empty dict and the config.yaml value was not.These changes modify the behavior so that the config processing logic performs a deep merge on the values from the
config.yamlfile and the DB. In case of a conflict in the values, the DB wins.Relevant issues
Fixes #15020
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-unitType
🐛 Bug Fix
Changes