Skip to content

release: 2.14.0 #536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 16, 2025
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 .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- name: Set up Java
if: ${{ steps.release.outputs.releases_created }}
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-sonatype.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.13.1"
".": "2.14.0"
}
6 changes: 3 additions & 3 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 88
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-79dcb0ae501ac17004f50aecb112a798290ab3727fbe7c7d1b34299e38ed4f8e.yml
openapi_spec_hash: c8d54bd1ae3d704f6b6f72ffd2f876d8
config_hash: 167ad0ca036d0f023c78e6496b4311e8
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-670ea0d2cc44f52a87dd3cadea45632953283e0636ba30788fdbdb22a232ccac.yml
openapi_spec_hash: d8b7d38911fead545adf3e4297956410
config_hash: b2a4028fdbb27a08de89831ed310e244
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
# Changelog

## 2.14.0 (2025-07-16)

Full Changelog: [v2.13.1...v2.14.0](https://github.com/openai/openai-java/compare/v2.13.1...v2.14.0)

### Features

* **api:** manual updates ([d3dd5be](https://github.com/openai/openai-java/commit/d3dd5be0c6797f7f7fb7935df27b7ad67177f6ea))


### Bug Fixes

* **internal:** add back addAssistantMessage ([e27b476](https://github.com/openai/openai-java/commit/e27b476b2c4e8287407b40bc2e683c33af992c43))
* **internal:** add back addAssistantMessage ([d363245](https://github.com/openai/openai-java/commit/d363245365a618bfd75e05f905af4eda90d24e96))


### Chores

* **api:** update realtime specs ([dd24c50](https://github.com/openai/openai-java/commit/dd24c500f029db5c1d38e9659eafb3bcd4d6fe99))
* **ci:** bump `actions/setup-java` to v4 ([e5112cd](https://github.com/openai/openai-java/commit/e5112cdb3d411357886c334b15cc3de62e2fc9c3))

## 2.13.1 (2025-07-15)

Full Changelog: [v2.13.0...v2.13.1](https://github.com/openai/openai-java/compare/v2.13.0...v2.13.1)
Expand Down
10 changes: 5 additions & 5 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/2.13.1)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/2.13.1/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/2.13.1)
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/2.14.0)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/2.14.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/2.14.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/2.13.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/2.14.0).

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

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

```kotlin
implementation("com.openai:openai-java:2.13.1")
implementation("com.openai:openai-java:2.14.0")
```

### Maven
Expand All @@ -31,7 +31,7 @@ implementation("com.openai:openai-java:2.13.1")
<dependency>
<groupId>com.openai</groupId>
<artifactId>openai-java</artifactId>
<version>2.13.1</version>
<version>2.14.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 = "2.13.1" // x-release-please-version
version = "2.14.0" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ private constructor(
fun text(): Optional<String> = text.getOptional("text")

/**
* The transcript of the audio, used for `input_audio` content type.
* The transcript of the audio, used for `input_audio` and `audio` content types.
*
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
*/
fun transcript(): Optional<String> = transcript.getOptional("transcript")

/**
* The content type (`input_text`, `input_audio`, `item_reference`, `text`).
* The content type (`input_text`, `input_audio`, `item_reference`, `text`, `audio`).
*
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the
* server responded with an unexpected value).
Expand Down Expand Up @@ -188,7 +188,7 @@ private constructor(
*/
fun text(text: JsonField<String>) = apply { this.text = text }

/** The transcript of the audio, used for `input_audio` content type. */
/** The transcript of the audio, used for `input_audio` and `audio` content types. */
fun transcript(transcript: String) = transcript(JsonField.of(transcript))

/**
Expand All @@ -200,7 +200,7 @@ private constructor(
*/
fun transcript(transcript: JsonField<String>) = apply { this.transcript = transcript }

/** The content type (`input_text`, `input_audio`, `item_reference`, `text`). */
/** The content type (`input_text`, `input_audio`, `item_reference`, `text`, `audio`). */
fun type(type: Type) = type(JsonField.of(type))

/**
Expand Down Expand Up @@ -282,7 +282,7 @@ private constructor(
(if (transcript.asKnown().isPresent) 1 else 0) +
(type.asKnown().getOrNull()?.validity() ?: 0)

/** The content type (`input_text`, `input_audio`, `item_reference`, `text`). */
/** The content type (`input_text`, `input_audio`, `item_reference`, `text`, `audio`). */
class Type @JsonCreator private constructor(private val value: JsonField<String>) : Enum {

/**
Expand All @@ -305,6 +305,8 @@ private constructor(

@JvmField val TEXT = of("text")

@JvmField val AUDIO = of("audio")

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

Expand All @@ -314,6 +316,7 @@ private constructor(
INPUT_AUDIO,
ITEM_REFERENCE,
TEXT,
AUDIO,
}

/**
Expand All @@ -330,6 +333,7 @@ private constructor(
INPUT_AUDIO,
ITEM_REFERENCE,
TEXT,
AUDIO,
/** An enum member indicating that [Type] was instantiated with an unknown value. */
_UNKNOWN,
}
Expand All @@ -347,6 +351,7 @@ private constructor(
INPUT_AUDIO -> Value.INPUT_AUDIO
ITEM_REFERENCE -> Value.ITEM_REFERENCE
TEXT -> Value.TEXT
AUDIO -> Value.AUDIO
else -> Value._UNKNOWN
}

Expand All @@ -365,6 +370,7 @@ private constructor(
INPUT_AUDIO -> Known.INPUT_AUDIO
ITEM_REFERENCE -> Known.ITEM_REFERENCE
TEXT -> Known.TEXT
AUDIO -> Known.AUDIO
else -> throw OpenAIInvalidDataException("Unknown Type: $value")
}

Expand Down
Loading