diff --git a/libs/superagent/app/agents/llm.py b/libs/superagent/app/agents/llm.py index 4a8e1269b..8fb4f167f 100644 --- a/libs/superagent/app/agents/llm.py +++ b/libs/superagent/app/agents/llm.py @@ -277,7 +277,7 @@ async def _completion(self, **kwargs) -> Any: output = self._cleanup_output(output) - if not self._stream_directly: + if not self._stream_directly and self.enable_streaming: await self._stream_by_lines(output) if self.enable_streaming: