Skip to content

Commit b27559f

Browse files
fix(client): correctly send streaming discriminator param
1 parent 787e12b commit b27559f

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

openai-java-core/src/main/kotlin/com/openai/models/responses/ResponseRetrieveParams.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,6 @@ private constructor(
227227
.apply {
228228
include?.forEach { put("include[]", it.toString()) }
229229
startingAfter?.let { put("starting_after", it.toString()) }
230-
stream?.let { put("stream", it.toString()) }
231230
putAll(additionalQueryParams)
232231
}
233232
.build()

openai-java-core/src/main/kotlin/com/openai/services/async/ResponseServiceAsyncImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ class ResponseServiceAsyncImpl internal constructor(private val clientOptions: C
231231
HttpRequest.builder()
232232
.method(HttpMethod.GET)
233233
.addPathSegments("responses", params._pathParam(0))
234+
.putQueryParam("stream", "true")
234235
.build()
235236
.prepareAsync(clientOptions, params, deploymentModel = null)
236237
val requestOptions = requestOptions.applyDefaults(RequestOptions.from(clientOptions))

openai-java-core/src/main/kotlin/com/openai/services/blocking/ResponseServiceImpl.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ class ResponseServiceImpl internal constructor(private val clientOptions: Client
204204
HttpRequest.builder()
205205
.method(HttpMethod.GET)
206206
.addPathSegments("responses", params._pathParam(0))
207+
.putQueryParam("stream", "true")
207208
.build()
208209
.prepare(clientOptions, params, deploymentModel = null)
209210
val requestOptions = requestOptions.applyDefaults(RequestOptions.from(clientOptions))

0 commit comments

Comments
 (0)