mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-16 23:41:43 +00:00
fix(cost): drop remaining unnecessary cast in batch cost calculator
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
a5f00b9189
commit
168d0d3d99
1 changed files with 1 additions and 1 deletions
|
|
@ -2365,7 +2365,7 @@ def batch_cost_calculator(
|
|||
tokens * rate
|
||||
for tokens, rate in zip(
|
||||
(
|
||||
max(cast(int, usage.prompt_tokens) - audio_tokens - image_tokens - video_tokens, 0),
|
||||
max((usage.prompt_tokens or 0) - audio_tokens - image_tokens - video_tokens, 0),
|
||||
audio_tokens,
|
||||
image_tokens,
|
||||
video_tokens,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue