Skip to content

Commit 2e76f50

Browse files
committed
fix(api): add stream field in ChatCompletionNewParams
1 parent 7f35136 commit 2e76f50

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

chatcompletion.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3056,6 +3056,8 @@ type ChatCompletionNewParams struct {
30563056
// Up to 4 sequences where the API will stop generating further tokens. The
30573057
// returned text will not contain the stop sequence.
30583058
Stop ChatCompletionNewParamsStopUnion `json:"stop,omitzero"`
3059+
// Whether to stream the response.
3060+
Stream bool `json:"stream,omitzero"`
30593061
// Options for streaming response. Only set this when you set `stream: true`.
30603062
StreamOptions ChatCompletionStreamOptionsParam `json:"stream_options,omitzero"`
30613063
// Constrains the verbosity of the model's response. Lower values will result in

0 commit comments

Comments
 (0)