Skip to content

release: 1.4.1 #444

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 3 commits into from
Apr 17, 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 @@ -42,7 +42,7 @@ jobs:
export -- GPG_SIGNING_KEY_ID
printenv -- GPG_SIGNING_KEY | gpg --batch --passphrase-fd 3 --import 3<<< "$GPG_SIGNING_PASSWORD"
GPG_SIGNING_KEY_ID="$(gpg --with-colons --list-keys | awk -F : -- '/^pub:/ { getline; print "0x" substr($10, length($10) - 7) }')"
./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD"
./gradlew publishAndReleaseToMavenCentral --stacktrace -PmavenCentralUsername="$SONATYPE_USERNAME" -PmavenCentralPassword="$SONATYPE_PASSWORD" --no-configuration-cache
env:
SONATYPE_USERNAME: ${{ secrets.OPENAI_SONATYPE_USERNAME || secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.OPENAI_SONATYPE_PASSWORD || secrets.SONATYPE_PASSWORD }}
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 @@
{
".": "1.4.0"
".": "1.4.1"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 1.4.1 (2025-04-17)

Full Changelog: [v1.4.0...v1.4.1](https://github.com/openai/openai-java/compare/v1.4.0...v1.4.1)

### Bug Fixes

* **internal:** release flow ([777a756](https://github.com/openai/openai-java/commit/777a7565f14d86c00611880ee143b522a9af2698))
* **internal:** test compilation error ([544a4ce](https://github.com/openai/openai-java/commit/544a4cebb5b34a55354e06431dd4a966a5213aa2))

## 1.4.0 (2025-04-17)

Full Changelog: [v1.3.1...v1.4.0](https://github.com/openai/openai-java/compare/v1.3.1...v1.4.0)
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/1.4.0)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/1.4.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/1.4.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/1.4.1)
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/1.4.1/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/1.4.1)

<!-- 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/1.4.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/1.4.1).

<!-- 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:1.4.0")
implementation("com.openai:openai-java:1.4.1")
```

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

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ internal class ChatCompletionAccumulatorTest {
.isEqualTo(ChatCompletion.Choice.FinishReason.STOP)
assertThat(chatCompletion.usage()).isNotPresent()
assertThat(chatCompletion.systemFingerprint().get()).isEqualTo("fingerprint")
assertThat(chatCompletion.serviceTier().get()).isEqualTo(ChatCompletion.ServiceTier.SCALE)
assertThat(chatCompletion.serviceTier().get()).isEqualTo(ChatCompletion.ServiceTier.AUTO)
}

@Test
Expand All @@ -84,7 +84,7 @@ internal class ChatCompletionAccumulatorTest {
.isEqualTo(ChatCompletion.Choice.FinishReason.STOP)
assertThat(chatCompletionA.usage()).isNotPresent()
assertThat(chatCompletionA.systemFingerprint().get()).isEqualTo("fingerprint")
assertThat(chatCompletionA.serviceTier().get()).isEqualTo(ChatCompletion.ServiceTier.SCALE)
assertThat(chatCompletionA.serviceTier().get()).isEqualTo(ChatCompletion.ServiceTier.AUTO)

assertThat(chatCompletionB.choices()[0].finishReason())
.isEqualTo(ChatCompletion.Choice.FinishReason.STOP)
Expand All @@ -95,7 +95,7 @@ internal class ChatCompletionAccumulatorTest {
// The `finalUsageChunk()` had `null` values for `systemFingerprint` and `serviceTier`, but
// those should _not_ have overwritten the non-`null` values on the `finalChunk()`.
assertThat(chatCompletionB.systemFingerprint().get()).isEqualTo("fingerprint")
assertThat(chatCompletionB.serviceTier().get()).isEqualTo(ChatCompletion.ServiceTier.SCALE)
assertThat(chatCompletionB.serviceTier().get()).isEqualTo(ChatCompletion.ServiceTier.AUTO)
}

@Test
Expand Down Expand Up @@ -426,7 +426,7 @@ internal class ChatCompletionAccumulatorTest {
.created(123_456_789L)
.model("model-id")
.systemFingerprint("fingerprint")
.serviceTier(ChatCompletionChunk.ServiceTier.SCALE)
.serviceTier(ChatCompletionChunk.ServiceTier.AUTO)
.addChoice(
ChatCompletionChunk.Choice.builder()
.finishReason(finishReason)
Expand Down
Loading