File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
openai-java-core/src/main/kotlin/com/openai/services Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,11 @@ class ImageServiceAsyncImpl internal constructor(private val clientOptions: Clie
138
138
.addPathSegments(" images" , " generations" )
139
139
.body(json(clientOptions.jsonMapper, params._body ()))
140
140
.build()
141
- .prepareAsync(clientOptions, params, params.model().toString())
141
+ .prepareAsync(
142
+ clientOptions,
143
+ params,
144
+ deploymentModel = params.model().map { it.toString() }.orElse(null ),
145
+ )
142
146
val requestOptions = requestOptions.applyDefaults(RequestOptions .from(clientOptions))
143
147
return request
144
148
.thenComposeAsync { clientOptions.httpClient.executeAsync(it, requestOptions) }
Original file line number Diff line number Diff line change @@ -128,7 +128,11 @@ class ImageServiceImpl internal constructor(private val clientOptions: ClientOpt
128
128
.addPathSegments(" images" , " generations" )
129
129
.body(json(clientOptions.jsonMapper, params._body ()))
130
130
.build()
131
- .prepare(clientOptions, params, params.model().toString())
131
+ .prepare(
132
+ clientOptions,
133
+ params,
134
+ params.model().map { it.toString() }.orElse(null ),
135
+ )
132
136
val requestOptions = requestOptions.applyDefaults(RequestOptions .from(clientOptions))
133
137
val response = clientOptions.httpClient.execute(request, requestOptions)
134
138
return response.parseable {
You can’t perform that action at this time.
0 commit comments