mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-16 04:29:31 +00:00
fix(proxy): guard output file size when content is missing
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
d4b0a77698
commit
4ca9b8310a
1 changed files with 1 additions and 1 deletions
|
|
@ -805,7 +805,7 @@ class CheckBatchCost:
|
|||
file_object=_batch_output_file_object(
|
||||
unified_file_id=_unified_file_id,
|
||||
raw_file_id=_raw_file_id,
|
||||
size_bytes=len(content_bytes) if _file_attr == "output_file_id" else 0,
|
||||
size_bytes=len(content_bytes or b"") if _file_attr == "output_file_id" else 0,
|
||||
),
|
||||
litellm_parent_otel_span=None,
|
||||
model_mappings={model_id: _raw_file_id},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue