Skip to content

Commit 81770c0

Browse files
release: 4.7.2 (#648)
* codegen metadata * fix(client): multi-value header serialization * release: 4.7.2 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent 2494220 commit 81770c0

File tree

6 files changed

+21
-13
lines changed

6 files changed

+21
-13
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.7.1"
2+
".": "4.7.2"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 135
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-eeba8addf3a5f412e5ce8d22031e60c61650cee3f5d9e587a2533f6818a249ea.yml
33
openapi_spec_hash: 0a4d8ad2469823ce24a3fd94f23f1c2b
4-
config_hash: 0bb1941a78ece0b610a2fbba7d74a84c
4+
config_hash: 630eea84bb3067d25640419af058ed56

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 4.7.2 (2025-11-13)
4+
5+
Full Changelog: [v4.7.1...v4.7.2](https://github.com/openai/openai-java/compare/v4.7.1...v4.7.2)
6+
7+
### Bug Fixes
8+
9+
* **client:** multi-value header serialization ([4a198b2](https://github.com/openai/openai-java/commit/4a198b2f0e2531295bb1bf9d4ca2fdbd74af64e5))
10+
311
## 4.7.1 (2025-11-04)
412

513
Full Changelog: [v4.7.0...v4.7.1](https://github.com/openai/openai-java/compare/v4.7.0...v4.7.1)

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22

33
<!-- x-release-please-start-version -->
44

5-
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/4.7.1)
6-
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/4.7.1/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/4.7.1)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/4.7.2)
6+
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/4.7.2/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/4.7.2)
77

88
<!-- x-release-please-end -->
99

1010
The OpenAI Java SDK provides convenient access to the [OpenAI REST API](https://platform.openai.com/docs) from applications written in Java.
1111

1212
<!-- x-release-please-start-version -->
1313

14-
The REST API documentation can be found on [platform.openai.com](https://platform.openai.com/docs). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openai/openai-java/4.7.1).
14+
The REST API documentation can be found on [platform.openai.com](https://platform.openai.com/docs). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openai/openai-java/4.7.2).
1515

1616
<!-- x-release-please-end -->
1717

@@ -24,7 +24,7 @@ The REST API documentation can be found on [platform.openai.com](https://platfor
2424
### Gradle
2525

2626
```kotlin
27-
implementation("com.openai:openai-java:4.7.1")
27+
implementation("com.openai:openai-java:4.7.2")
2828
```
2929

3030
### Maven
@@ -33,7 +33,7 @@ implementation("com.openai:openai-java:4.7.1")
3333
<dependency>
3434
<groupId>com.openai</groupId>
3535
<artifactId>openai-java</artifactId>
36-
<version>4.7.1</version>
36+
<version>4.7.2</version>
3737
</dependency>
3838
```
3939

@@ -1342,7 +1342,7 @@ If you're using Spring Boot, then you can use the SDK's [Spring Boot starter](ht
13421342
#### Gradle
13431343

13441344
```kotlin
1345-
implementation("com.openai:openai-java-spring-boot-starter:4.7.1")
1345+
implementation("com.openai:openai-java-spring-boot-starter:4.7.2")
13461346
```
13471347

13481348
#### Maven
@@ -1351,7 +1351,7 @@ implementation("com.openai:openai-java-spring-boot-starter:4.7.1")
13511351
<dependency>
13521352
<groupId>com.openai</groupId>
13531353
<artifactId>openai-java-spring-boot-starter</artifactId>
1354-
<version>4.7.1</version>
1354+
<version>4.7.2</version>
13551355
</dependency>
13561356
```
13571357

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ repositories {
88

99
allprojects {
1010
group = "com.openai"
11-
version = "4.7.1" // x-release-please-version
11+
version = "4.7.2" // x-release-please-version
1212
}
1313

1414
subprojects {

openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OkHttpClient.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,19 +109,19 @@ class OkHttpClient private constructor(private val okHttpClient: okhttp3.OkHttpC
109109

110110
val builder = Request.Builder().url(toUrl()).method(method.name, body)
111111
headers.names().forEach { name ->
112-
headers.values(name).forEach { builder.header(name, it) }
112+
headers.values(name).forEach { builder.addHeader(name, it) }
113113
}
114114

115115
if (
116116
!headers.names().contains("X-Stainless-Read-Timeout") && client.readTimeoutMillis != 0
117117
) {
118-
builder.header(
118+
builder.addHeader(
119119
"X-Stainless-Read-Timeout",
120120
Duration.ofMillis(client.readTimeoutMillis.toLong()).seconds.toString(),
121121
)
122122
}
123123
if (!headers.names().contains("X-Stainless-Timeout") && client.callTimeoutMillis != 0) {
124-
builder.header(
124+
builder.addHeader(
125125
"X-Stainless-Timeout",
126126
Duration.ofMillis(client.callTimeoutMillis.toLong()).seconds.toString(),
127127
)

0 commit comments

Comments
 (0)