Skip to content

Commit

Permalink
docs: Added flush=True to print on streaming responses (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszOssGit authored Jul 22, 2024
1 parent cdc0dad commit b9a5318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/ibm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,5 @@ You can stream the model output.
for chunk in watsonx_llm.stream(
"Describe your favorite breed of dog and why it is your favorite."
):
print(chunk, end="")
print(chunk, end="", flush=True)
```

0 comments on commit b9a5318

Please sign in to comment.