Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "4.41.0"
".": "4.42.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 263
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-b5b621065906a2579dc180db1236ee3b08a4fca9539accc2fbbf88da0ca3923f.yml
openapi_spec_hash: 45b1b4692b26e714008d8120ccfc7433
config_hash: ef3ce17315a31703e7af0567b3e9738c
configured_endpoints: 270
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai/openai-39637fc9365e6f80f12424e7c87179553f157b96b47c599b96d5a02f6966d3da.yml
openapi_spec_hash: 885864ae98a443166f585f856c464fb2
config_hash: b40012963b4619be8229fcca0105b627
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## [4.42.0](https://github.com/openai/openai-java/compare/v4.41.0...v4.42.0) (2026-07-09)


### Features

* **api:** gpt-5.6-sol updates ([2ca768a](https://github.com/openai/openai-java/commit/2ca768ad80da1643680ce99fee977080e19f2e2b))


### Bug Fixes

* **api:** preserve deprecated beta realtime accessors ([a1cd1f1](https://github.com/openai/openai-java/commit/a1cd1f1ad58f7009073819765792d62995650da7))
* **api:** restore beta responses custom code ([73f67f2](https://github.com/openai/openai-java/commit/73f67f286ef5147fc252090f9d3b8e44a857a208))


### Chores

* retrigger release automation ([a3006ee](https://github.com/openai/openai-java/commit/a3006ee468a3e4d4167368cf5a2e66590e4a65a0))

## 4.41.0 (2026-06-17)

Full Changelog: [v4.40.0...v4.41.0](https://github.com/openai/openai-java/compare/v4.40.0...v4.41.0)
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

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

[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/4.41.0)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/4.41.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/4.41.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/4.42.0)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/4.42.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/4.42.0)

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

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

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

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.41.0).
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.42.0).

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

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

```kotlin
implementation("com.openai:openai-java:4.41.0")
implementation("com.openai:openai-java:4.42.0")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.openai:openai-java:4.41.0")
<dependency>
<groupId>com.openai</groupId>
<artifactId>openai-java</artifactId>
<version>4.41.0</version>
<version>4.42.0</version>
</dependency>
```

Expand Down Expand Up @@ -1433,7 +1433,7 @@ If you're using Spring Boot, then you can use the SDK's [Spring Boot starter](ht
#### Gradle

```kotlin
implementation("com.openai:openai-java-spring-boot-starter:4.41.0")
implementation("com.openai:openai-java-spring-boot-starter:4.42.0")
```

#### Maven
Expand All @@ -1442,7 +1442,7 @@ implementation("com.openai:openai-java-spring-boot-starter:4.41.0")
<dependency>
<groupId>com.openai</groupId>
<artifactId>openai-java-spring-boot-starter</artifactId>
<version>4.41.0</version>
<version>4.42.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.openai"
version = "4.41.0" // x-release-please-version
version = "4.42.0" // x-release-please-version
}

subprojects {
Expand Down
18 changes: 18 additions & 0 deletions openai-java-core/src/main/kotlin/com/openai/models/ChatModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St

companion object {

@JvmField val GPT_5_6_SOL = of("gpt-5.6-sol")

@JvmField val GPT_5_6_TERRA = of("gpt-5.6-terra")

@JvmField val GPT_5_6_LUNA = of("gpt-5.6-luna")

@JvmField val GPT_5_4 = of("gpt-5.4")

@JvmField val GPT_5_4_MINI = of("gpt-5.4-mini")
Expand Down Expand Up @@ -183,6 +189,9 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St

/** An enum containing [ChatModel]'s known values. */
enum class Known {
GPT_5_6_SOL,
GPT_5_6_TERRA,
GPT_5_6_LUNA,
GPT_5_4,
GPT_5_4_MINI,
GPT_5_4_NANO,
Expand Down Expand Up @@ -273,6 +282,9 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
* - It was constructed with an arbitrary value using the [of] method.
*/
enum class Value {
GPT_5_6_SOL,
GPT_5_6_TERRA,
GPT_5_6_LUNA,
GPT_5_4,
GPT_5_4_MINI,
GPT_5_4_NANO,
Expand Down Expand Up @@ -364,6 +376,9 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
*/
fun value(): Value =
when (this) {
GPT_5_6_SOL -> Value.GPT_5_6_SOL
GPT_5_6_TERRA -> Value.GPT_5_6_TERRA
GPT_5_6_LUNA -> Value.GPT_5_6_LUNA
GPT_5_4 -> Value.GPT_5_4
GPT_5_4_MINI -> Value.GPT_5_4_MINI
GPT_5_4_NANO -> Value.GPT_5_4_NANO
Expand Down Expand Up @@ -455,6 +470,9 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
*/
fun known(): Known =
when (this) {
GPT_5_6_SOL -> Known.GPT_5_6_SOL
GPT_5_6_TERRA -> Known.GPT_5_6_TERRA
GPT_5_6_LUNA -> Known.GPT_5_6_LUNA
GPT_5_4 -> Known.GPT_5_4
GPT_5_4_MINI -> Known.GPT_5_4_MINI
GPT_5_4_NANO -> Known.GPT_5_4_NANO
Expand Down
Loading
Loading