From 98e4d16ad52ade144a7f89329f0facf66d0c424d Mon Sep 17 00:00:00 2001 From: pietdaniel Date: Mon, 31 Aug 2026 15:55:42 -0400 Subject: [PATCH 1/3] docs: update OkHttp website links --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 47c478f97..51de23e4a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -51,10 +51,10 @@ The SDK's primary artifacts are: - `openai-java-core` - Contains core SDK logic - - Does not depend on [OkHttp](https://square.github.io/okhttp) + - Does not depend on [OkHttp](https://lysine.dev/okhttp/) - Exposes [`OpenAIClient`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClient.kt), [`OpenAIClientAsync`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsync.kt), [`OpenAIClientImpl`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientImpl.kt), and [`OpenAIClientAsyncImpl`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsyncImpl.kt), all of which can work with any HTTP client - `openai-java-client-okhttp` - - Depends on [OkHttp](https://square.github.io/okhttp) + - Depends on [OkHttp](https://lysine.dev/okhttp/) - Exposes [`OpenAIOkHttpClient`](openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClient.kt) and [`OpenAIOkHttpClientAsync`](openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClientAsync.kt), which provide a way to construct [`OpenAIClientImpl`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientImpl.kt) and [`OpenAIClientAsyncImpl`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsyncImpl.kt), respectively, using OkHttp - `openai-java` - Depends on and exposes the APIs of both `openai-java-core` and `openai-java-client-okhttp` From f5aa120f2709703a57db0afb531f7f7d0f6ea95f Mon Sep 17 00:00:00 2001 From: pietdaniel Date: Mon, 31 Aug 2026 17:13:18 -0400 Subject: [PATCH 2/3] docs: update remaining OkHttp links --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d1165f398..5345ccb1b 100644 --- a/README.md +++ b/README.md @@ -1803,10 +1803,10 @@ The SDK consists of three artifacts: - `openai-java-core` - Contains core SDK logic - - Does not depend on [OkHttp](https://square.github.io/okhttp) + - Does not depend on [OkHttp](https://lysine.dev/okhttp/) - Exposes [`OpenAIClient`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClient.kt), [`OpenAIClientAsync`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsync.kt), [`OpenAIClientImpl`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientImpl.kt), and [`OpenAIClientAsyncImpl`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsyncImpl.kt), all of which can work with any HTTP client - `openai-java-client-okhttp` - - Depends on [OkHttp](https://square.github.io/okhttp) + - Depends on [OkHttp](https://lysine.dev/okhttp/) - Exposes [`OpenAIOkHttpClient`](openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClient.kt) and [`OpenAIOkHttpClientAsync`](openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClientAsync.kt), which provide a way to construct [`OpenAIClientImpl`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientImpl.kt) and [`OpenAIClientAsyncImpl`](openai-java-core/src/main/kotlin/com/openai/client/OpenAIClientAsyncImpl.kt), respectively, using OkHttp - `openai-java` - Depends on and exposes the APIs of both `openai-java-core` and `openai-java-client-okhttp` @@ -1814,7 +1814,7 @@ The SDK consists of three artifacts: This structure allows replacing the SDK's default HTTP client without pulling in unnecessary dependencies. -#### Customized [`OkHttpClient`](https://square.github.io/okhttp/3.x/okhttp/okhttp3/OkHttpClient.html) +#### Customized [`OkHttpClient`](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-ok-http-client/) > [!TIP] > Try the available [network options](#network-options) before replacing the default client. From 37656409fe4bf1622717b2a6175abea4ac3b2811 Mon Sep 17 00:00:00 2001 From: pietdaniel Date: Mon, 31 Aug 2026 17:15:09 -0400 Subject: [PATCH 3/3] docs: link to OkHttp 4 API --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5345ccb1b..f560f363a 100644 --- a/README.md +++ b/README.md @@ -1814,7 +1814,7 @@ The SDK consists of three artifacts: This structure allows replacing the SDK's default HTTP client without pulling in unnecessary dependencies. -#### Customized [`OkHttpClient`](https://lysine.dev/okhttp/5.x/okhttp/okhttp3/-ok-http-client/) +#### Customized [`OkHttpClient`](https://lysine.dev/okhttp/4.x/okhttp/okhttp3/-ok-http-client/) > [!TIP] > Try the available [network options](#network-options) before replacing the default client.