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
Jump to file
Failed to load files.
Loading
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 @@
{
".": "3.6.1"
".": "3.7.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 118
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-937fcfac8cbab692796cd9822b37e48a311e2220a8b103106ded0ee92a0b9484.yml
openapi_spec_hash: 74a0c58b5b8c4e06792d79b685e02a01
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-410219ea680089f02bb55163c673919703f946c3d6ad7ff5d6f607121d5287d5.yml
openapi_spec_hash: 2b3eee95d3f6796c7a61dfddf694a59a
config_hash: 666d6bb4b564f0d9d431124b5d1a0665
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 3.7.0 (2025-09-23)

Full Changelog: [v3.6.1...v3.7.0](https://github.com/openai/openai-java/compare/v3.6.1...v3.7.0)

### Features

* **api:** gpt-5-codex ([cf7d02f](https://github.com/openai/openai-java/commit/cf7d02ff2624397628eefd5bdcd025b60980691c))

## 3.6.1 (2025-09-22)

Full Changelog: [v3.6.0...v3.6.1](https://github.com/openai/openai-java/compare/v3.6.0...v3.6.1)
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/3.6.1)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/3.6.1/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/3.6.1)
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/3.7.0)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/3.7.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/3.7.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/3.6.1).
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/3.7.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:3.6.1")
implementation("com.openai:openai-java:3.7.0")
```

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

Expand Down Expand Up @@ -1342,7 +1342,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:3.6.1")
implementation("com.openai:openai-java-spring-boot-starter:3.7.0")
```

#### Maven
Expand All @@ -1351,7 +1351,7 @@ implementation("com.openai:openai-java-spring-boot-starter:3.6.1")
<dependency>
<groupId>com.openai</groupId>
<artifactId>openai-java-spring-boot-starter</artifactId>
<version>3.6.1</version>
<version>3.7.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 = "3.6.1" // x-release-please-version
version = "3.7.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ private constructor(

@JvmField val COMPUTER_USE_PREVIEW_2025_03_11 = of("computer-use-preview-2025-03-11")

@JvmField val GPT_5_CODEX = of("gpt-5-codex")

@JvmStatic fun of(value: String) = ResponsesOnlyModel(JsonField.of(value))
}

Expand All @@ -267,6 +269,7 @@ private constructor(
O4_MINI_DEEP_RESEARCH_2025_06_26,
COMPUTER_USE_PREVIEW,
COMPUTER_USE_PREVIEW_2025_03_11,
GPT_5_CODEX,
}

/**
Expand All @@ -289,6 +292,7 @@ private constructor(
O4_MINI_DEEP_RESEARCH_2025_06_26,
COMPUTER_USE_PREVIEW,
COMPUTER_USE_PREVIEW_2025_03_11,
GPT_5_CODEX,
/**
* An enum member indicating that [ResponsesOnlyModel] was instantiated with an unknown
* value.
Expand All @@ -315,6 +319,7 @@ private constructor(
O4_MINI_DEEP_RESEARCH_2025_06_26 -> Value.O4_MINI_DEEP_RESEARCH_2025_06_26
COMPUTER_USE_PREVIEW -> Value.COMPUTER_USE_PREVIEW
COMPUTER_USE_PREVIEW_2025_03_11 -> Value.COMPUTER_USE_PREVIEW_2025_03_11
GPT_5_CODEX -> Value.GPT_5_CODEX
else -> Value._UNKNOWN
}

Expand All @@ -339,6 +344,7 @@ private constructor(
O4_MINI_DEEP_RESEARCH_2025_06_26 -> Known.O4_MINI_DEEP_RESEARCH_2025_06_26
COMPUTER_USE_PREVIEW -> Known.COMPUTER_USE_PREVIEW
COMPUTER_USE_PREVIEW_2025_03_11 -> Known.COMPUTER_USE_PREVIEW_2025_03_11
GPT_5_CODEX -> Known.GPT_5_CODEX
else -> throw OpenAIInvalidDataException("Unknown ResponsesOnlyModel: $value")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ private constructor(

@JvmField val COMPUTER_USE_PREVIEW_2025_03_11 = of("computer-use-preview-2025-03-11")

@JvmField val GPT_5_CODEX = of("gpt-5-codex")

@JvmStatic fun of(value: String) = ResponsesOnlyModel(JsonField.of(value))
}

Expand All @@ -266,6 +268,7 @@ private constructor(
O4_MINI_DEEP_RESEARCH_2025_06_26,
COMPUTER_USE_PREVIEW,
COMPUTER_USE_PREVIEW_2025_03_11,
GPT_5_CODEX,
}

/**
Expand All @@ -288,6 +291,7 @@ private constructor(
O4_MINI_DEEP_RESEARCH_2025_06_26,
COMPUTER_USE_PREVIEW,
COMPUTER_USE_PREVIEW_2025_03_11,
GPT_5_CODEX,
/**
* An enum member indicating that [ResponsesOnlyModel] was instantiated with an unknown
* value.
Expand All @@ -314,6 +318,7 @@ private constructor(
O4_MINI_DEEP_RESEARCH_2025_06_26 -> Value.O4_MINI_DEEP_RESEARCH_2025_06_26
COMPUTER_USE_PREVIEW -> Value.COMPUTER_USE_PREVIEW
COMPUTER_USE_PREVIEW_2025_03_11 -> Value.COMPUTER_USE_PREVIEW_2025_03_11
GPT_5_CODEX -> Value.GPT_5_CODEX
else -> Value._UNKNOWN
}

Expand All @@ -338,6 +343,7 @@ private constructor(
O4_MINI_DEEP_RESEARCH_2025_06_26 -> Known.O4_MINI_DEEP_RESEARCH_2025_06_26
COMPUTER_USE_PREVIEW -> Known.COMPUTER_USE_PREVIEW
COMPUTER_USE_PREVIEW_2025_03_11 -> Known.COMPUTER_USE_PREVIEW_2025_03_11
GPT_5_CODEX -> Known.GPT_5_CODEX
else -> throw OpenAIInvalidDataException("Unknown ResponsesOnlyModel: $value")
}

Expand Down
Loading