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 remote-tracking branch 'origin/main' into litellm_ui_session_personal_key_budget_ceiling

Devin AI53fe97975f9a
diff --cc litellm/proxy/management_endpoints/internal_user_endpoints.py
index 0e5028d797b,029a968e156..1c986305c21
--- a/litellm/proxy/management_endpoints/internal_user_endpoints.py
+++ b/litellm/proxy/management_endpoints/internal_user_endpoints.py
@@@ -1562,7 -1571,7 +1572,7 @@@ async def _update_single_user_helper
await _invalidate_user_spend_counter_if_changed(non_default_values)
- if not _USER_BUDGET_CACHE_FIELDS.isdisjoint(non_default_values):
- if "model_max_budget" in non_default_values or "metadata" in data_json:
++ if not _USER_BUDGET_CACHE_FIELDS.isdisjoint(non_default_values) or "metadata" in data_json:
await evict_and_broadcast(
cache_keys=(non_default_values["user_id"],),
user_api_key_cache=user_api_key_cache,