mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-11 22:51:28 +00:00
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:
parent
7593ebc606
commit
cb5d673301
1 changed files with 1 additions and 1 deletions
|
|
@ -108,7 +108,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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue