Commit da5f9bc
authored
Add CompletionRequest.StreamOptions (#959)
The legacy completion API supports a `stream_options` object when
`stream` is set to true [0]. This adds a StreamOptions property to the
CompletionRequest struct to support this setting.
[0] https://platform.openai.com/docs/api-reference/completions/create#completions-create-stream_options
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>1 parent bb5bc27 commit da5f9bc
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
218 | 220 | | |
219 | 221 | | |
220 | 222 | | |
| |||
0 commit comments