File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
openai-java-core/src/main/kotlin/com/openai/core Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import java.time.Clock
11
11
12
12
class ClientOptions
13
13
private constructor (
14
+ private val originalHttpClient: HttpClient ,
14
15
@get:JvmName(" httpClient" ) val httpClient: HttpClient ,
15
16
@get:JvmName(" jsonMapper" ) val jsonMapper: JsonMapper ,
16
17
@get:JvmName(" clock" ) val clock: Clock ,
@@ -51,7 +52,7 @@ private constructor(
51
52
52
53
@JvmSynthetic
53
54
internal fun from (clientOptions : ClientOptions ) = apply {
54
- httpClient = clientOptions.httpClient
55
+ httpClient = clientOptions.originalHttpClient
55
56
jsonMapper = clientOptions.jsonMapper
56
57
clock = clientOptions.clock
57
58
baseUrl = clientOptions.baseUrl
@@ -160,6 +161,7 @@ private constructor(
160
161
this .queryParams.forEach(queryParams::replaceValues)
161
162
162
163
return ClientOptions (
164
+ httpClient!! ,
163
165
RetryingHttpClient .builder()
164
166
.httpClient(httpClient!! )
165
167
.clock(clock)
You can’t perform that action at this time.
0 commit comments