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]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix exception triggered only when not logging (#15982)
Ishaan Jaff65afdda3ef05
diff --git a/litellm/proxy/hooks/proxy_track_cost_callback.py b/litellm/proxy/hooks/proxy_track_cost_callback.pyindex 06f92261d89..e165f96b663 100644--- a/litellm/proxy/hooks/proxy_track_cost_callback.py+++ b/litellm/proxy/hooks/proxy_track_cost_callback.py@@ -186,10 +186,6 @@ class _ProxyDBLogger(CustomLogger):response_cost=response_cost,max_budget=end_user_max_budget,)- else:- raise Exception(- "User API key and team id and user id missing from custom callback."- )else:if kwargs["stream"] is not True or (kwargs["stream"] is True and "complete_streaming_response" in kwargs