mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-22 00:31:44 +00:00
style: black format main.py
This commit is contained in:
parent
30a548e216
commit
165b1add61
1 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue