Skip to content

Commit fb225e5

Browse files
stainless-app[bot]meorphisTomerAberbach
authored
release: 0.35.0 (#311)
* chore(internal): remove CI condition (#310) * chore(internal): update release workflows * docs: deduplicate and refine comments (#313) * chore(internal): make test classes internal (#317) * chore(internal): add generated comment (#318) * docs: add `build` method comments (#321) * chore(internal): refactor query param serialization impl and tests (#322) * chore(internal): rename `getPathParam` (#323) chore(internal): reorder some params methodsc chore(internal): delete duplicate tests chore(internal): refactor some test assertions * chore(internal): reformat some tests (#324) chore(internal): generate more tests * feat(client): don't require params for some service methods (#325) * chore(internal): add some tests for union classes (#326) * docs: image url example * release: 0.35.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: meorphis <[email protected]> Co-authored-by: Tomer Aberbach <[email protected]>
1 parent 9765668 commit fb225e5

File tree

700 files changed

+43082
-13523
lines changed

Some content is hidden

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

700 files changed

+43082
-13523
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
lint:
1313
name: lint
1414
runs-on: ubuntu-latest
15-
if: github.repository == 'openai/openai-java'
15+
1616

1717
steps:
1818
- uses: actions/checkout@v4
@@ -34,7 +34,6 @@ jobs:
3434
test:
3535
name: test
3636
runs-on: ubuntu-latest
37-
if: github.repository == 'openai/openai-java'
3837

3938
steps:
4039
- uses: actions/checkout@v4

.github/workflows/create-releases.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.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.34.1"
2+
".": "0.35.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 78
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-c8579861bc21d4d2155a5b9e8e7d54faee8083730673c4d32cbbe573d7fb4116.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-c8579861bc21d4d2155a5b9e8e7d54faee8083730673c4d32cbbe573d7fb4116.yml

CHANGELOG.md

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

3+
## 0.35.0 (2025-03-18)
4+
5+
Full Changelog: [v0.34.1...v0.35.0](https://github.com/openai/openai-java/compare/v0.34.1...v0.35.0)
6+
7+
### Features
8+
9+
* **client:** don't require params for some service methods ([#325](https://github.com/openai/openai-java/issues/325)) ([3ed7cf8](https://github.com/openai/openai-java/commit/3ed7cf88c11b95003b5962f94f848af3511f0525))
10+
11+
12+
### Chores
13+
14+
* **internal:** add generated comment ([#318](https://github.com/openai/openai-java/issues/318)) ([44a46b5](https://github.com/openai/openai-java/commit/44a46b5e6651a3cf38f4b5321020a9fa52c5976c))
15+
* **internal:** add some tests for union classes ([#326](https://github.com/openai/openai-java/issues/326)) ([bd92f57](https://github.com/openai/openai-java/commit/bd92f577231430115d4976a3f4740ef8f09baa07))
16+
* **internal:** delete duplicate tests ([f95f8bc](https://github.com/openai/openai-java/commit/f95f8bc083cebbfeef127b62d8c5dbaffa2083ed))
17+
* **internal:** generate more tests ([a05b899](https://github.com/openai/openai-java/commit/a05b899d056538f47a238cac0e6357ce2688861a))
18+
* **internal:** make test classes internal ([#317](https://github.com/openai/openai-java/issues/317)) ([f9a25b4](https://github.com/openai/openai-java/commit/f9a25b4be4daa5184b9d19896f4e2009285759be))
19+
* **internal:** refactor query param serialization impl and tests ([#322](https://github.com/openai/openai-java/issues/322)) ([93558fc](https://github.com/openai/openai-java/commit/93558fcecc463b7d6a4f976c2a7889b1c691dc52))
20+
* **internal:** refactor some test assertions ([f95f8bc](https://github.com/openai/openai-java/commit/f95f8bc083cebbfeef127b62d8c5dbaffa2083ed))
21+
* **internal:** reformat some tests ([#324](https://github.com/openai/openai-java/issues/324)) ([a05b899](https://github.com/openai/openai-java/commit/a05b899d056538f47a238cac0e6357ce2688861a))
22+
* **internal:** remove CI condition ([#310](https://github.com/openai/openai-java/issues/310)) ([1cb3294](https://github.com/openai/openai-java/commit/1cb3294f74fa75bca443aaa6f0f3d9127ed7ea14))
23+
* **internal:** rename `getPathParam` ([#323](https://github.com/openai/openai-java/issues/323)) ([f95f8bc](https://github.com/openai/openai-java/commit/f95f8bc083cebbfeef127b62d8c5dbaffa2083ed))
24+
* **internal:** reorder some params methodsc ([f95f8bc](https://github.com/openai/openai-java/commit/f95f8bc083cebbfeef127b62d8c5dbaffa2083ed))
25+
* **internal:** update release workflows ([2b0d392](https://github.com/openai/openai-java/commit/2b0d392b57acc03b393c1052e39326606d9ad2b0))
26+
27+
28+
### Documentation
29+
30+
* add `build` method comments ([#321](https://github.com/openai/openai-java/issues/321)) ([31a8e9e](https://github.com/openai/openai-java/commit/31a8e9e507d0242098fc280ad03cb40ab92dcf83))
31+
* deduplicate and refine comments ([#313](https://github.com/openai/openai-java/issues/313)) ([3e0b2f5](https://github.com/openai/openai-java/commit/3e0b2f5ebea908879f2215bb648027d60e491374))
32+
* image url example ([39695e4](https://github.com/openai/openai-java/commit/39695e4702c10171e02fb426bc66db61599c365a))
33+
334
## 0.34.1 (2025-03-11)
435

536
Full Changelog: [v0.34.0...v0.34.1](https://github.com/openai/openai-java/compare/v0.34.0...v0.34.1)

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
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.34.1)
13-
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/0.34.1/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/0.34.1)
12+
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/0.35.0)
13+
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/0.35.0/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/0.35.0)
1414

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

1717
The OpenAI Java SDK provides convenient access to the OpenAI REST API from applications written in Java.
1818

19-
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.0.1).
19+
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.34.1).
2020

2121
## Installation
2222

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

2727
```kotlin
28-
implementation("com.openai:openai-java:0.34.1")
28+
implementation("com.openai:openai-java:0.35.0")
2929
```
3030

3131
### Maven
@@ -34,7 +34,7 @@ implementation("com.openai:openai-java:0.34.1")
3434
<dependency>
3535
<groupId>com.openai</groupId>
3636
<artifactId>openai-java</artifactId>
37-
<version>0.34.1</version>
37+
<version>0.35.0</version>
3838
</dependency>
3939
```
4040

bin/check-release-environment

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
errors=()
44

5-
if [ -z "${STAINLESS_API_KEY}" ]; then
6-
errors+=("The STAINLESS_API_KEY secret has not been set. Please contact Stainless for an API key & set it in your organization secrets on GitHub.")
7-
fi
8-
95
if [ -z "${SONATYPE_USERNAME}" ]; then
106
errors+=("The OPENAI_SONATYPE_USERNAME secret has not been set. Please set it in either this repository's secrets or your organization secrets")
117
fi

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

1414
subprojects {

openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClient.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,21 @@ class OpenAIOkHttpClient private constructor() {
161161

162162
fun organization(organization: String?) = apply { clientOptions.organization(organization) }
163163

164+
/** Alias for calling [Builder.organization] with `organization.orElse(null)`. */
164165
fun organization(organization: Optional<String>) = organization(organization.getOrNull())
165166

166167
fun project(project: String?) = apply { clientOptions.project(project) }
167168

169+
/** Alias for calling [Builder.project] with `project.orElse(null)`. */
168170
fun project(project: Optional<String>) = project(project.getOrNull())
169171

170172
fun fromEnv() = apply { clientOptions.fromEnv() }
171173

174+
/**
175+
* Returns an immutable instance of [OpenAIClient].
176+
*
177+
* Further updates to this [Builder] will not mutate the returned instance.
178+
*/
172179
fun build(): OpenAIClient =
173180
OpenAIClientImpl(
174181
clientOptions

openai-java-client-okhttp/src/main/kotlin/com/openai/client/okhttp/OpenAIOkHttpClientAsync.kt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,21 @@ class OpenAIOkHttpClientAsync private constructor() {
161161

162162
fun organization(organization: String?) = apply { clientOptions.organization(organization) }
163163

164+
/** Alias for calling [Builder.organization] with `organization.orElse(null)`. */
164165
fun organization(organization: Optional<String>) = organization(organization.getOrNull())
165166

166167
fun project(project: String?) = apply { clientOptions.project(project) }
167168

169+
/** Alias for calling [Builder.project] with `project.orElse(null)`. */
168170
fun project(project: Optional<String>) = project(project.getOrNull())
169171

170172
fun fromEnv() = apply { clientOptions.fromEnv() }
171173

174+
/**
175+
* Returns an immutable instance of [OpenAIClientAsync].
176+
*
177+
* Further updates to this [Builder] will not mutate the returned instance.
178+
*/
172179
fun build(): OpenAIClientAsync =
173180
OpenAIClientAsyncImpl(
174181
clientOptions

0 commit comments

Comments
 (0)