mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
Fixes #20534 The UI sends the full form on every team update, including premium metadata fields like `policies: []` and `team_member_key_duration: ""`. The backend's `_update_metadata_fields` treated any non-None value as premium feature usage and returned 403 for non-enterprise users — even when the fields were empty and the user was just updating basic settings like team name or budget. Added `_has_non_empty_value` helper and use it in the premium field gate in `_update_metadata_fields` so empty lists, blank strings, and None values skip the premium check entirely. Non-empty values still enforce the enterprise requirement as before. |
||
|---|---|---|
| .. | ||
| test_common_utils.py | ||
| test_cost_estimate_endpoint.py | ||