Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

Merge branch 'litellm_internal_staging' into fix/34379-unblock-customer

Rāna(Bass Ver.)4f630411f095
diff --cc litellm/proxy/management_endpoints/customer_endpoints.py
index 6efb3365cd9,9ef3d2defef..d2d87331d55
--- a/litellm/proxy/management_endpoints/customer_endpoints.py
+++ b/litellm/proxy/management_endpoints/customer_endpoints.py
@@@ -551,9 -624,13 +624,9 @@@ async def update_end_user
raise Exception("Not connected to DB!")
# get non default values for key
- non_default_values = {}
+ non_default_values: Final = dict[str, object]()
for k, v in data_json.items():
- if v is not None and v not in (
- [],
- {},
- 0,
- ): # models default to [], spend defaults to 0, we should not reset these values
+ if v is not None and ((isinstance(v, bool) and k in data.fields_set()) or v not in ([], {}, 0)):
non_default_values[k] = v
## Get end user table data ##