forked from phoenix/litellm-mirror
fix divide by 0 bug
This commit is contained in:
parent
91a89eb4ed
commit
02fc507b01
1 changed files with 2 additions and 1 deletions
|
@ -875,6 +875,7 @@ Model Info:
|
|||
|
||||
if isinstance(response_obj, litellm.ModelResponse):
|
||||
completion_tokens = response_obj.usage.completion_tokens
|
||||
if completion_tokens is not None and completion_tokens > 0:
|
||||
final_value = float(response_s.total_seconds() / completion_tokens)
|
||||
|
||||
await self.async_update_daily_reports(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue