We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3c721e commit 39d155fCopy full SHA for 39d155f
README.md
@@ -44,6 +44,8 @@ puts(chat_completion)
44
45
We provide support for streaming responses using Server-Sent Events (SSE).
46
47
+**coming soon:** `openai.chat.completions.stream` will soon come with Python SDK style higher level streaming responses support.
48
+
49
```ruby
50
stream = openai.chat.completions.stream_raw(
51
messages: [{role: "user", content: "Say this is a test"}],
@@ -76,8 +78,6 @@ end
76
78
77
79
Alternatively, you can use the `#next_page?` and `#next_page` methods for more granular control working with pages.
80
-**coming soon:** `openai.chat.completions.stream` will soon come with Python SDK style higher level streaming responses support.
-
81
82
if page.next_page?
83
new_page = page.next_page
0 commit comments