diff --git a/ovos_solver_openai_persona/engines.py b/ovos_solver_openai_persona/engines.py index dd25ad6..afc96a8 100644 --- a/ovos_solver_openai_persona/engines.py +++ b/ovos_solver_openai_persona/engines.py @@ -219,7 +219,9 @@ def _do_streaming_api_request(self, messages): break if "content" not in chunk["choices"][0]["delta"]: continue - yield chunk["choices"][0]["delta"]["content"] + text = chunk["choices"][0]["delta"]["content"] + if text is not None: + yield text def get_chat_history(self, system_prompt=None): """