diff --git a/edenai_apis/apis/openai/openai_text_api.py b/edenai_apis/apis/openai/openai_text_api.py index 3b2b578a..32f19d81 100644 --- a/edenai_apis/apis/openai/openai_text_api.py +++ b/edenai_apis/apis/openai/openai_text_api.py @@ -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](