Skip to content

Commit

Permalink
fix: stream only when it's enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
elisalimli committed Apr 29, 2024
1 parent bb29b68 commit b8a453b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/superagent/app/agents/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b8a453b

Please sign in to comment.