Skip to content

Commit 4672331

Browse files
alexrudallms-jpq
authored andcommitted
chore: docs/README tweaks (#570)
* Fix typos * Improve streaming example so it prints readable output --------- Co-authored-by: dogisgreat <[email protected]>
1 parent 8184541 commit 4672331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ stream = openai.chat.completions.stream_raw(
7676
)
7777

7878
stream.each do |completion|
79-
puts(completion)
79+
print(completion.choices.first.delta.content)
8080
end
8181
```
8282

0 commit comments

Comments
 (0)