Skip to content

Commit 8610d08

Browse files
committed
Merge upstream PR sigoden#1511: serialize the stream flag
Integrate the exact upstream PR head so OpenAI-compatible requests always carry the configured stream boolean. The combined streaming follow-up keeps this source hunk and adds focused true/false coverage. Source: sigoden#1511 Head: 63ecb71
2 parents 6eb9a0e + 63ecb71 commit 8610d08

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/client/openai.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,7 @@ pub fn openai_build_chat_completions_body(data: ChatCompletionsData, model: &Mod
328328
if let Some(v) = top_p {
329329
body["top_p"] = v.into();
330330
}
331-
if stream {
332-
body["stream"] = true.into();
333-
}
331+
body["stream"] = stream.into();
334332
if let Some(functions) = functions {
335333
body["tools"] = functions
336334
.iter()

0 commit comments

Comments
 (0)