mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-10 22:41:41 +00:00
Specify updated field name causing premium feature block
Without this, the error returned when a user attempts to perform an update to an object (eg a Team) does not specify which field in the update request was considered blocking because of the lack of an enterprise license, making correcting the issue very difficult.
This commit is contained in:
parent
f4b79fa635
commit
4ea12150fa
1 changed files with 1 additions and 1 deletions
|
|
@ -372,7 +372,7 @@ def _update_metadata_field(updated_kv: dict, field_name: str) -> None:
|
|||
# proceed with the update so that users can intentionally clear a
|
||||
# previously-set field by sending an empty list/dict.
|
||||
if value is not None and value != [] and value != {}:
|
||||
_premium_user_check()
|
||||
_premium_user_check(feature: f"update {field_name}")
|
||||
|
||||
if field_name in updated_kv and updated_kv[field_name] is not None:
|
||||
# remove field from updated_kv
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue