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
138138 .addPathSegments(" images" , " generations" )
139139 .body(json(clientOptions.jsonMapper, params._body ()))
140140 .build()
141- .prepareAsync(clientOptions, params, params.model().toString())
141+ .prepareAsync(
142+ clientOptions,
143+ params,
144+ deploymentModel = params.model().map { it.toString() }.orElse(null ),
145+ )
142146 val requestOptions = requestOptions.applyDefaults(RequestOptions .from(clientOptions))
143147 return request
144148 .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
128128 .addPathSegments(" images" , " generations" )
129129 .body(json(clientOptions.jsonMapper, params._body ()))
130130 .build()
131- .prepare(clientOptions, params, params.model().toString())
131+ .prepare(
132+ clientOptions,
133+ params,
134+ params.model().map { it.toString() }.orElse(null ),
135+ )
132136 val requestOptions = requestOptions.applyDefaults(RequestOptions .from(clientOptions))
133137 val response = clientOptions.httpClient.execute(request, requestOptions)
134138 return response.parseable {
You can’t perform that action at this time.
0 commit comments