Skip to content

Commit

Permalink
[fix] don't handle empty chunks in stream response
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrianC committed Dec 12, 2023
1 parent 007ee65 commit 1fd5116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edenai_apis/apis/openai/openai_text_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,7 @@ def text__chat(
in (None, "stop"),
provider="openai",
)
for chunk in response
for chunk in response if chunk
)

return ResponseType[StreamChat](
Expand Down

0 comments on commit 1fd5116

Please sign in to comment.