From 99d59702f8351bef235aee4937b1d3f82e6a9a38 Mon Sep 17 00:00:00 2001 From: Tyler Lisowski Date: Mon, 20 Oct 2025 22:12:16 -0500 Subject: [PATCH] Add stream option to ChatCompletion parameters --- chatcompletion.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chatcompletion.go b/chatcompletion.go index 2f937388..4a5cd39b 100644 --- a/chatcompletion.go +++ b/chatcompletion.go @@ -3056,6 +3056,8 @@ type ChatCompletionNewParams struct { // Up to 4 sequences where the API will stop generating further tokens. The // returned text will not contain the stop sequence. Stop ChatCompletionNewParamsStopUnion `json:"stop,omitzero"` + // Stream option to stream events to client + Stream bool `json:"stream,omitzero"` // Options for streaming response. Only set this when you set `stream: true`. StreamOptions ChatCompletionStreamOptionsParam `json:"stream_options,omitzero"` // Constrains the verbosity of the model's response. Lower values will result in