Skip to content

Commit

Permalink
Merge pull request #978 from superagent-ai/fix/llm-agent-streaming-di…
Browse files Browse the repository at this point in the history
…sabled

fix: stream only when it's enabled
  • Loading branch information
elisalimli authored Apr 29, 2024
2 parents bb29b68 + b8a453b commit 20433fe
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 20433fe

Please sign in to comment.