Skip to content

Commit ac82502

Browse files
release: 2.2.1 (#487)
* fix(client): don't throw on absent error message * release: 2.2.1 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent f2608bb commit ac82502

13 files changed

+24
-16
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.2.0"
2+
".": "2.2.1"
33
}

CHANGELOG.md

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

3+
## 2.2.1 (2025-05-27)
4+
5+
Full Changelog: [v2.2.0...v2.2.1](https://github.com/openai/openai-java/compare/v2.2.0...v2.2.1)
6+
7+
### Bug Fixes
8+
9+
* **client:** don't throw on absent error message ([0d1e325](https://github.com/openai/openai-java/commit/0d1e325ee02af89f713db9cc7fb360676d942d6d))
10+
311
## 2.2.0 (2025-05-23)
412

513
Full Changelog: [v2.1.0...v2.2.0](https://github.com/openai/openai-java/compare/v2.1.0...v2.2.0)

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.2.0)
6-
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/2.2.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/2.2.0)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/2.2.1)
6+
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/2.2.1/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/2.2.1)
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.2.0).
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.2.1).
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.2.0")
25+
implementation("com.openai:openai-java:2.2.1")
2626
```
2727

2828
### Maven
@@ -31,7 +31,7 @@ implementation("com.openai:openai-java:2.2.0")
3131
<dependency>
3232
<groupId>com.openai</groupId>
3333
<artifactId>openai-java</artifactId>
34-
<version>2.2.0</version>
34+
<version>2.2.1</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.2.0" // x-release-please-version
11+
version = "2.2.1" // x-release-please-version
1212
}
1313

1414
subprojects {

openai-java-core/src/main/kotlin/com/openai/errors/BadRequestException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private constructor(
1616
private val headers: Headers,
1717
private val error: ErrorObject?,
1818
cause: Throwable?,
19-
) : OpenAIServiceException("400: ${error?.message()}", cause) {
19+
) : OpenAIServiceException("400: ${error?._message()}", cause) {
2020

2121
override fun statusCode(): Int = 400
2222

openai-java-core/src/main/kotlin/com/openai/errors/InternalServerException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private constructor(
1717
private val headers: Headers,
1818
private val error: ErrorObject?,
1919
cause: Throwable?,
20-
) : OpenAIServiceException("$statusCode: ${error?.message()}", cause) {
20+
) : OpenAIServiceException("$statusCode: ${error?._message()}", cause) {
2121

2222
override fun body(): JsonValue =
2323
error?.let { JsonValue.fromJsonNode(jsonMapper().valueToTree(it)) } ?: JsonMissing.of()

openai-java-core/src/main/kotlin/com/openai/errors/NotFoundException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private constructor(
1616
private val headers: Headers,
1717
private val error: ErrorObject?,
1818
cause: Throwable?,
19-
) : OpenAIServiceException("404: ${error?.message()}", cause) {
19+
) : OpenAIServiceException("404: ${error?._message()}", cause) {
2020

2121
override fun statusCode(): Int = 404
2222

openai-java-core/src/main/kotlin/com/openai/errors/PermissionDeniedException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private constructor(
1616
private val headers: Headers,
1717
private val error: ErrorObject?,
1818
cause: Throwable?,
19-
) : OpenAIServiceException("403: ${error?.message()}", cause) {
19+
) : OpenAIServiceException("403: ${error?._message()}", cause) {
2020

2121
override fun statusCode(): Int = 403
2222

openai-java-core/src/main/kotlin/com/openai/errors/RateLimitException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ private constructor(
1616
private val headers: Headers,
1717
private val error: ErrorObject?,
1818
cause: Throwable?,
19-
) : OpenAIServiceException("429: ${error?.message()}", cause) {
19+
) : OpenAIServiceException("429: ${error?._message()}", cause) {
2020

2121
override fun statusCode(): Int = 429
2222

openai-java-core/src/main/kotlin/com/openai/errors/SseException.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ private constructor(
1717
private val headers: Headers,
1818
private val error: ErrorObject?,
1919
cause: Throwable?,
20-
) : OpenAIServiceException("$statusCode: ${error?.message()}", cause) {
20+
) : OpenAIServiceException("$statusCode: ${error?._message()}", cause) {
2121

2222
override fun body(): JsonValue =
2323
error?.let { JsonValue.fromJsonNode(jsonMapper().valueToTree(it)) } ?: JsonMissing.of()

0 commit comments

Comments
 (0)