Update litellm/proxy/hooks/proxy_track_cost_callback.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Harshit Jain 2026-03-03 00:33:22 +05:30 committed by GitHub
parent 338a634762
commit fb69de98e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")