mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
fix cost tracking for whisper
This commit is contained in:
parent
ebc22a7593
commit
c0c715b905
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ def get_logging_payload(
|
|||
completion_start_time = kwargs.get("completion_start_time", end_time)
|
||||
call_type = kwargs.get("call_type")
|
||||
cache_hit = kwargs.get("cache_hit", False)
|
||||
usage = response_obj["usage"]
|
||||
usage = response_obj.get("usage", None) or {}
|
||||
if type(usage) == litellm.Usage:
|
||||
usage = dict(usage)
|
||||
id = response_obj.get("id", kwargs.get("litellm_call_id"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue