Skip to content

Commit b8a7201

Browse files
Merge pull request #501 from openai/release-please--branches--main--changes--next
release: 2.4.0
2 parents 38ace13 + b2efc3d commit b8a7201

File tree

7 files changed

+29
-9
lines changed

7 files changed

+29
-9
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-
".": "2.3.2"
2+
".": "2.4.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 86
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-2bcc845d8635bf93ddcf9ee723af4d7928248412a417bee5fc10d863a1e13867.yml
3-
openapi_spec_hash: 865230cb3abeb01bd85de05891af23c4
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-0205acb1015d29b2312a48526734c0399f93026d4fe2dff5c7768f566e333fd2.yml
3+
openapi_spec_hash: 1772cc9056c2f6dfb2a4e9cb77ee6343
44
config_hash: ed1e6b3c5f93d12b80d31167f55c557c

CHANGELOG.md

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

3+
## 2.4.0 (2025-06-03)
4+
5+
Full Changelog: [v2.3.2...v2.4.0](https://github.com/openai/openai-java/compare/v2.3.2...v2.4.0)
6+
7+
### Features
8+
9+
* **api:** add new realtime and audio models, realtime session options ([898d2ad](https://github.com/openai/openai-java/commit/898d2ad33f780e060dff902b755f3456ae0c12ed))
10+
11+
12+
### Chores
13+
14+
* **internal:** minor formatting change ([f68c491](https://github.com/openai/openai-java/commit/f68c491cb41e22a25d498b18919e8e7a657d753a))
15+
316
## 2.3.2 (2025-06-02)
417

518
Full Changelog: [v2.3.1...v2.3.2](https://github.com/openai/openai-java/compare/v2.3.1...v2.3.2)

README.md

Lines changed: 5 additions & 5 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/2.3.2)
6-
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/2.3.2/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/2.3.2)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/2.4.0)
6+
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/2.4.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/2.4.0)
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/2.3.2).
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/2.4.0).
1515

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

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

2424
```kotlin
25-
implementation("com.openai:openai-java:2.3.2")
25+
implementation("com.openai:openai-java:2.4.0")
2626
```
2727

2828
### Maven
@@ -31,7 +31,7 @@ implementation("com.openai:openai-java:2.3.2")
3131
<dependency>
3232
<groupId>com.openai</groupId>
3333
<artifactId>openai-java</artifactId>
34-
<version>2.3.2</version>
34+
<version>2.4.0</version>
3535
</dependency>
3636
```
3737

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 = "2.3.2" // x-release-please-version
11+
version = "2.4.0" // x-release-please-version
1212
}
1313

1414
subprojects {

openai-java-core/src/main/kotlin/com/openai/core/handlers/SseHandler.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ internal fun sseHandler(jsonMapper: JsonMapper): Handler<StreamResponse<SseMessa
2525
if (done) {
2626
continue
2727
}
28+
2829
val message = state.decode(line) ?: continue
2930

3031
if (message.data.startsWith("[DONE]")) {

openai-java-core/src/main/kotlin/com/openai/models/ChatModel.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
7070

7171
@JvmField val GPT_4O_AUDIO_PREVIEW_2024_12_17 = of("gpt-4o-audio-preview-2024-12-17")
7272

73+
@JvmField val GPT_4O_AUDIO_PREVIEW_2025_06_03 = of("gpt-4o-audio-preview-2025-06-03")
74+
7375
@JvmField val GPT_4O_MINI_AUDIO_PREVIEW = of("gpt-4o-mini-audio-preview")
7476

7577
@JvmField
@@ -160,6 +162,7 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
160162
GPT_4O_AUDIO_PREVIEW,
161163
GPT_4O_AUDIO_PREVIEW_2024_10_01,
162164
GPT_4O_AUDIO_PREVIEW_2024_12_17,
165+
GPT_4O_AUDIO_PREVIEW_2025_06_03,
163166
GPT_4O_MINI_AUDIO_PREVIEW,
164167
GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17,
165168
GPT_4O_SEARCH_PREVIEW,
@@ -226,6 +229,7 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
226229
GPT_4O_AUDIO_PREVIEW,
227230
GPT_4O_AUDIO_PREVIEW_2024_10_01,
228231
GPT_4O_AUDIO_PREVIEW_2024_12_17,
232+
GPT_4O_AUDIO_PREVIEW_2025_06_03,
229233
GPT_4O_MINI_AUDIO_PREVIEW,
230234
GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17,
231235
GPT_4O_SEARCH_PREVIEW,
@@ -293,6 +297,7 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
293297
GPT_4O_AUDIO_PREVIEW -> Value.GPT_4O_AUDIO_PREVIEW
294298
GPT_4O_AUDIO_PREVIEW_2024_10_01 -> Value.GPT_4O_AUDIO_PREVIEW_2024_10_01
295299
GPT_4O_AUDIO_PREVIEW_2024_12_17 -> Value.GPT_4O_AUDIO_PREVIEW_2024_12_17
300+
GPT_4O_AUDIO_PREVIEW_2025_06_03 -> Value.GPT_4O_AUDIO_PREVIEW_2025_06_03
296301
GPT_4O_MINI_AUDIO_PREVIEW -> Value.GPT_4O_MINI_AUDIO_PREVIEW
297302
GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17 -> Value.GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17
298303
GPT_4O_SEARCH_PREVIEW -> Value.GPT_4O_SEARCH_PREVIEW
@@ -360,6 +365,7 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
360365
GPT_4O_AUDIO_PREVIEW -> Known.GPT_4O_AUDIO_PREVIEW
361366
GPT_4O_AUDIO_PREVIEW_2024_10_01 -> Known.GPT_4O_AUDIO_PREVIEW_2024_10_01
362367
GPT_4O_AUDIO_PREVIEW_2024_12_17 -> Known.GPT_4O_AUDIO_PREVIEW_2024_12_17
368+
GPT_4O_AUDIO_PREVIEW_2025_06_03 -> Known.GPT_4O_AUDIO_PREVIEW_2025_06_03
363369
GPT_4O_MINI_AUDIO_PREVIEW -> Known.GPT_4O_MINI_AUDIO_PREVIEW
364370
GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17 -> Known.GPT_4O_MINI_AUDIO_PREVIEW_2024_12_17
365371
GPT_4O_SEARCH_PREVIEW -> Known.GPT_4O_SEARCH_PREVIEW

0 commit comments

Comments
 (0)