Skip to content

Commit 5762189

Browse files
release: 0.40.0 (#368)
* feat(api): add `get /responses/{response_id}/input_items` endpoint (#367) * feat(client): add new responses endpoint (#369) * fix: deploymentModel arg * release: 0.40.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Tomer Aberbach <[email protected]>
1 parent 782eab5 commit 5762189

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1280
-73
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-
".": "0.39.0"
2+
".": "0.40.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 79
1+
configured_endpoints: 80
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-6663c59193eb95b201e492de17dcbd5e126ba03d18ce66287a3e2c632ca56fe7.yml
33
openapi_spec_hash: 7996d2c34cc44fe2ce9ffe93c0ab774e
4-
config_hash: 9351ea829c2b41da3b48a38c934c92ee
4+
config_hash: e25e31d8446b6bc0e3ef7103b6993cce

CHANGELOG.md

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

3+
## 0.40.0 (2025-03-27)
4+
5+
Full Changelog: [v0.39.0...v0.40.0](https://github.com/openai/openai-java/compare/v0.39.0...v0.40.0)
6+
7+
### Features
8+
9+
* **api:** add `get /responses/{response_id}/input_items` endpoint ([#367](https://github.com/openai/openai-java/issues/367)) ([c569175](https://github.com/openai/openai-java/commit/c569175e0427273707d0bee2535da0bf616e9b7c))
10+
* **client:** add new responses endpoint ([#369](https://github.com/openai/openai-java/issues/369)) ([f15b5ee](https://github.com/openai/openai-java/commit/f15b5eeb2bab3534daa41b56c2f7b05cd5791c97))
11+
12+
13+
### Bug Fixes
14+
15+
* deploymentModel arg ([139c062](https://github.com/openai/openai-java/commit/139c06287a82a80a06968b0b8826d9c2c5116dde))
16+
317
## 0.39.0 (2025-03-27)
418

519
Full Changelog: [v0.38.0...v0.39.0](https://github.com/openai/openai-java/compare/v0.38.0...v0.39.0)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@
99
1010
<!-- x-release-please-start-version -->
1111

12-
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/0.39.0)
13-
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/0.39.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/0.39.0)
12+
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/0.40.0)
13+
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/0.40.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/0.40.0)
1414

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

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

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

21-
The REST API documentation can be found on [platform.openai.com](https://platform.openai.com/docs). Javadocs are also available on [javadoc.io](https://javadoc.io/doc/com.openai/openai-java/0.39.0).
21+
The REST API documentation can be found on [platform.openai.com](https://platform.openai.com/docs). Javadocs are also available on [javadoc.io](https://javadoc.io/doc/com.openai/openai-java/0.40.0).
2222

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

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

3131
```kotlin
32-
implementation("com.openai:openai-java:0.39.0")
32+
implementation("com.openai:openai-java:0.40.0")
3333
```
3434

3535
### Maven
@@ -38,7 +38,7 @@ implementation("com.openai:openai-java:0.39.0")
3838
<dependency>
3939
<groupId>com.openai</groupId>
4040
<artifactId>openai-java</artifactId>
41-
<version>0.39.0</version>
41+
<version>0.40.0</version>
4242
</dependency>
4343
```
4444

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 = "0.39.0" // x-release-please-version
11+
version = "0.40.0" // x-release-please-version
1212
}
1313

1414
subprojects {

openai-java-core/src/main/kotlin/com/openai/models/batches/BatchListPage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private constructor(
5454
return Optional.empty()
5555
}
5656

57-
return Optional.of(BatchListParams.builder().from(params).after(data().last().id()).build())
57+
return Optional.of(params.toBuilder().after(data().last().id()).build())
5858
}
5959

6060
fun getNextPage(): Optional<BatchListPage> {

openai-java-core/src/main/kotlin/com/openai/models/batches/BatchListPageAsync.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private constructor(
5454
return Optional.empty()
5555
}
5656

57-
return Optional.of(BatchListParams.builder().from(params).after(data().last().id()).build())
57+
return Optional.of(params.toBuilder().after(data().last().id()).build())
5858
}
5959

6060
fun getNextPage(): CompletableFuture<Optional<BatchListPageAsync>> {

openai-java-core/src/main/kotlin/com/openai/models/beta/assistants/AssistantListPage.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ private constructor(
5454
return Optional.empty()
5555
}
5656

57-
return Optional.of(
58-
AssistantListParams.builder().from(params).after(data().last().id()).build()
59-
)
57+
return Optional.of(params.toBuilder().after(data().last().id()).build())
6058
}
6159

6260
fun getNextPage(): Optional<AssistantListPage> {

openai-java-core/src/main/kotlin/com/openai/models/beta/assistants/AssistantListPageAsync.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ private constructor(
5454
return Optional.empty()
5555
}
5656

57-
return Optional.of(
58-
AssistantListParams.builder().from(params).after(data().last().id()).build()
59-
)
57+
return Optional.of(params.toBuilder().after(data().last().id()).build())
6058
}
6159

6260
fun getNextPage(): CompletableFuture<Optional<AssistantListPageAsync>> {

openai-java-core/src/main/kotlin/com/openai/models/beta/threads/messages/MessageListPage.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ private constructor(
5454
return Optional.empty()
5555
}
5656

57-
return Optional.of(
58-
MessageListParams.builder().from(params).after(data().last().id()).build()
59-
)
57+
return Optional.of(params.toBuilder().after(data().last().id()).build())
6058
}
6159

6260
fun getNextPage(): Optional<MessageListPage> {

0 commit comments

Comments
 (0)