Skip to content

Commit

Permalink
Fix for llm hi --async --no-stream, refs #507
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Nov 6, 2024
1 parent e26e7f7 commit 1d8c3f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,13 +384,13 @@ async def inner():
sys.stdout.flush()
print("")
else:
response = await prompt_method(
response = prompt_method(
prompt,
attachments=resolved_attachments,
system=system,
**validated_options,
)
print(response.text())
print(await response.text())

asyncio.run(inner())
else:
Expand Down

0 comments on commit 1d8c3f8

Please sign in to comment.