mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
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:
parent
9f03795b88
commit
78aa0b2ea7
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue