Skip to content

Commit 5a6d2a2

Browse files
committed
fix: add missing argument
1 parent 54707d6 commit 5a6d2a2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ internal constructor(
148148
.method(HttpMethod.GET)
149149
.addPathSegments("chat", "completions", params.getPathParam(0))
150150
.build()
151-
.prepareAsync(clientOptions, params)
151+
.prepareAsync(clientOptions, params, null)
152152
return request
153153
.thenComposeAsync { clientOptions.httpClient.executeAsync(it, requestOptions) }
154154
.thenApply { response ->
@@ -180,7 +180,7 @@ internal constructor(
180180
.addPathSegments("chat", "completions", params.getPathParam(0))
181181
.body(json(clientOptions.jsonMapper, params._body()))
182182
.build()
183-
.prepareAsync(clientOptions, params)
183+
.prepareAsync(clientOptions, params, null)
184184
return request
185185
.thenComposeAsync { clientOptions.httpClient.executeAsync(it, requestOptions) }
186186
.thenApply { response ->
@@ -211,7 +211,7 @@ internal constructor(
211211
.addPathSegments("chat", "completions", params.getPathParam(0))
212212
.apply { params._body().ifPresent { body(json(clientOptions.jsonMapper, it)) } }
213213
.build()
214-
.prepareAsync(clientOptions, params)
214+
.prepareAsync(clientOptions, params, null)
215215
return request
216216
.thenComposeAsync { clientOptions.httpClient.executeAsync(it, requestOptions) }
217217
.thenApply { response ->

openai-java-core/src/main/kotlin/com/openai/services/async/chat/completions/MessageServiceAsyncImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ internal constructor(
4040
.method(HttpMethod.GET)
4141
.addPathSegments("chat", "completions", params.getPathParam(0), "messages")
4242
.build()
43-
.prepareAsync(clientOptions, params)
43+
.prepareAsync(clientOptions, params, null)
4444
return request
4545
.thenComposeAsync { clientOptions.httpClient.executeAsync(it, requestOptions) }
4646
.thenApply { response ->

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ internal constructor(
138138
.method(HttpMethod.GET)
139139
.addPathSegments("chat", "completions", params.getPathParam(0))
140140
.build()
141-
.prepare(clientOptions, params)
141+
.prepare(clientOptions, params, null)
142142
val response = clientOptions.httpClient.execute(request, requestOptions)
143143
return response
144144
.use { retrieveHandler.handle(it) }
@@ -167,7 +167,7 @@ internal constructor(
167167
.addPathSegments("chat", "completions", params.getPathParam(0))
168168
.body(json(clientOptions.jsonMapper, params._body()))
169169
.build()
170-
.prepare(clientOptions, params)
170+
.prepare(clientOptions, params, null)
171171
val response = clientOptions.httpClient.execute(request, requestOptions)
172172
return response
173173
.use { updateHandler.handle(it) }
@@ -195,7 +195,7 @@ internal constructor(
195195
.addPathSegments("chat", "completions", params.getPathParam(0))
196196
.apply { params._body().ifPresent { body(json(clientOptions.jsonMapper, it)) } }
197197
.build()
198-
.prepare(clientOptions, params)
198+
.prepare(clientOptions, params, null)
199199
val response = clientOptions.httpClient.execute(request, requestOptions)
200200
return response
201201
.use { deleteHandler.handle(it) }

openai-java-core/src/main/kotlin/com/openai/services/blocking/chat/completions/MessageServiceImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal constructor(
3939
.method(HttpMethod.GET)
4040
.addPathSegments("chat", "completions", params.getPathParam(0), "messages")
4141
.build()
42-
.prepare(clientOptions, params)
42+
.prepare(clientOptions, params, null)
4343
val response = clientOptions.httpClient.execute(request, requestOptions)
4444
return response
4545
.use { listHandler.handle(it) }

0 commit comments

Comments
 (0)