File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ main();
200
200
```
201
201
202
202
Streaming with ` openai.beta.chat.completions.stream({…}) ` exposes
203
- [ various helpers for your convenience] ( helpers.md#events ) including event handlers and promises.
203
+ [ various helpers for your convenience] ( helpers.md#chat- events ) including event handlers and promises.
204
204
205
205
Alternatively, you can use ` openai.chat.completions.create({ stream: true, … }) `
206
206
which only returns an async iterable of the chunks in the stream and thus uses less memory
@@ -285,12 +285,12 @@ main();
285
285
// Final content: "It's looking cold and rainy - you might want to wear a jacket!"
286
286
```
287
287
288
- Like with ` .stream() ` , we provide a variety of [ helpers and events] ( helpers.md#events ) .
288
+ Like with ` .stream() ` , we provide a variety of [ helpers and events] ( helpers.md#chat- events ) .
289
289
290
290
Note that ` runFunctions ` was previously available as well, but has been deprecated in favor of ` runTools ` .
291
291
292
292
Read more about various examples such as with integrating with [ zod] ( helpers.md#integrate-with-zod ) ,
293
- [ next.js] ( helpers.md#integrate-wtih-next-js ) , and [ proxying a stream to the browser] ( helpers.md#proxy-streaming-to-a-browser ) .
293
+ [ next.js] ( helpers.md#integrate-with-nextjs ) , and [ proxying a stream to the browser] ( helpers.md#proxy-streaming-to-a-browser ) .
294
294
295
295
## File uploads
296
296
You can’t perform that action at this time.
0 commit comments