style: black format main.py

This commit is contained in:
Ishaan Jaffer 2026-04-13 14:59:34 -07:00
parent 30a548e216
commit 165b1add61
No known key found for this signature in database

View file

@ -7388,9 +7388,7 @@ def stream_chunk_builder( # noqa: PLR0915
if len(chunks) == 0:
return None
## Route to the text completion logic
first_chunk_with_choices = next(
(c for c in chunks if c["choices"]), None
)
first_chunk_with_choices = next((c for c in chunks if c["choices"]), None)
if first_chunk_with_choices is not None and isinstance(
first_chunk_with_choices["choices"][0], litellm.utils.TextChoices
): # route to the text completion logic