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:
kerry 2026-09-15 02:26:19 +00:00
parent a5f00b9189
commit 168d0d3d99

View file

@ -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,