litellm/tests/litellm/proxy
Murali 52c9cf6058 fix(proxy): skip premium check for empty metadata fields on team/key update
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.
2026-02-06 14:50:24 -05:00
..
_experimental/mcp_server Fix/non standard mcp url pattern (#19738) 2026-01-25 23:00:53 -08:00
management_endpoints fix(proxy): skip premium check for empty metadata fields on team/key update 2026-02-06 14:50:24 -05:00