fix: use logging_obj.start_time for overhead calculation

Previously the call passed start_time=end_time, producing
_response_ms=0 and negative litellm_overhead_time_ms.
Use logging_obj.start_time with end_time fallback instead.
This commit is contained in:
factnn 2026-06-21 13:37:55 +08:00
parent 9f03795b88
commit 78aa0b2ea7

View file

@ -1437,12 +1437,13 @@ class ProxyBaseLLMRequestProcessing:
update_response_metadata,
)
start_time = logging_obj.start_time or end_time
update_response_metadata(
result=response,
logging_obj=logging_obj,
model=self.data.get("model"),
kwargs=self.data,
start_time=end_time,
start_time=start_time,
end_time=end_time,
)