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
Update litellm/proxy/hooks/proxy_track_cost_callback.py
Harshit Jainfb69de98e5fe
diff --git a/litellm/proxy/hooks/proxy_track_cost_callback.py b/litellm/proxy/hooks/proxy_track_cost_callback.pyindex 9a806fa4f87..8cddaed5be1 100644--- a/litellm/proxy/hooks/proxy_track_cost_callback.py+++ b/litellm/proxy/hooks/proxy_track_cost_callback.py@@ -117,7 +117,7 @@ class _ProxyDBLogger(CustomLogger):# match the Langfuse trace_id, making failed requests unsearchable._litellm_logging_obj = request_data.get("litellm_logging_obj")if _litellm_logging_obj is not None:- if "standard_logging_object" not in request_data:+ if not request_data.get("standard_logging_object"):request_data["standard_logging_object"] = getattr(_litellm_logging_obj, "model_call_details", {}).get("standard_logging_object")