Skip to content

Commit 94de167

Browse files
release: 3.0.3 (#579)
* codegen metadata * docs: add response raw structured outputs * chore(internal): format identity methods * fix: serialize dates correctly in structured outputs * release: 3.0.3 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Tomer Aberbach <[email protected]>
1 parent 169195c commit 94de167

File tree

583 files changed

+11628
-4544
lines changed

Some content is hidden

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

583 files changed

+11628
-4544
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-
".": "3.0.2"
2+
".": "3.0.3"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 111
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-6a1bfd4738fff02ef5becc3fdb2bf0cd6c026f2c924d4147a2a515474477dd9a.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-9cadfad609f94f20ebf74fdc06a80302f1a324dc69700a309a8056aabca82fd2.yml
33
openapi_spec_hash: 3eb8d86c06f0bb5e1190983e5acfc9ba
4-
config_hash: a67c5e195a59855fe8a5db0dc61a3e7f
4+
config_hash: 68337b532875626269c304372a669f67

CHANGELOG.md

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

3+
## 3.0.3 (2025-08-13)
4+
5+
Full Changelog: [v3.0.2...v3.0.3](https://github.com/openai/openai-java/compare/v3.0.2...v3.0.3)
6+
7+
### Bug Fixes
8+
9+
* serialize dates correctly in structured outputs ([8cd3639](https://github.com/openai/openai-java/commit/8cd3639fb8027fbb4945ab0d984b0ef82fc9ea5c))
10+
11+
12+
### Chores
13+
14+
* **internal:** format identity methods ([fd2661b](https://github.com/openai/openai-java/commit/fd2661b3ef67229394c80adeeba2377403d89d44))
15+
16+
17+
### Documentation
18+
19+
* add response raw structured outputs ([e68d31e](https://github.com/openai/openai-java/commit/e68d31e6828fe9139e4720e12a12e028b11bb2fb))
20+
321
## 3.0.2 (2025-08-09)
422

523
Full Changelog: [v3.0.1...v3.0.2](https://github.com/openai/openai-java/compare/v3.0.1...v3.0.2)

README.md

Lines changed: 7 additions & 7 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/3.0.2)
6-
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/3.0.2/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/3.0.2)
5+
[![Maven Central](https://img.shields.io/maven-central/v/com.openai/openai-java)](https://central.sonatype.com/artifact/com.openai/openai-java/3.0.3)
6+
[![javadoc](https://javadoc.io/badge2/com.openai/openai-java/3.0.3/javadoc.svg)](https://javadoc.io/doc/com.openai/openai-java/3.0.3)
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/3.0.2).
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/3.0.3).
1515

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

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

2626
```kotlin
27-
implementation("com.openai:openai-java:3.0.2")
27+
implementation("com.openai:openai-java:3.0.3")
2828
```
2929

3030
### Maven
@@ -33,7 +33,7 @@ implementation("com.openai:openai-java:3.0.2")
3333
<dependency>
3434
<groupId>com.openai</groupId>
3535
<artifactId>openai-java</artifactId>
36-
<version>3.0.2</version>
36+
<version>3.0.3</version>
3737
</dependency>
3838
```
3939

@@ -1330,7 +1330,7 @@ If you're using Spring Boot, then you can use the SDK's [Spring Boot starter](ht
13301330
#### Gradle
13311331

13321332
```kotlin
1333-
implementation("com.openai:openai-java-spring-boot-starter:3.0.2")
1333+
implementation("com.openai:openai-java-spring-boot-starter:3.0.3")
13341334
```
13351335

13361336
#### Maven
@@ -1339,7 +1339,7 @@ implementation("com.openai:openai-java-spring-boot-starter:3.0.2")
13391339
<dependency>
13401340
<groupId>com.openai</groupId>
13411341
<artifactId>openai-java-spring-boot-starter</artifactId>
1342-
<version>3.0.2</version>
1342+
<version>3.0.3</version>
13431343
</dependency>
13441344
```
13451345

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

1414
subprojects {

openai-java-core/src/main/kotlin/com/openai/core/StructuredOutputs.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package com.openai.core
22

33
import com.fasterxml.jackson.annotation.JsonTypeName
44
import com.fasterxml.jackson.databind.JsonNode
5+
import com.fasterxml.jackson.databind.SerializationFeature
56
import com.fasterxml.jackson.databind.json.JsonMapper
67
import com.fasterxml.jackson.databind.node.ObjectNode
78
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module
@@ -30,6 +31,7 @@ private val MAPPER =
3031
.addModule(kotlinModule())
3132
.addModule(Jdk8Module())
3233
.addModule(JavaTimeModule())
34+
.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
3335
.build()
3436

3537
/**

openai-java-core/src/main/kotlin/com/openai/core/Timeout.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,14 @@ private constructor(
157157
return true
158158
}
159159

160-
return /* spotless:off */ other is Timeout && connect == other.connect && read == other.read && write == other.write && request == other.request /* spotless:on */
160+
return other is Timeout &&
161+
connect == other.connect &&
162+
read == other.read &&
163+
write == other.write &&
164+
request == other.request
161165
}
162166

163-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(connect, read, write, request) /* spotless:on */
167+
override fun hashCode(): Int = Objects.hash(connect, read, write, request)
164168

165169
override fun toString() =
166170
"Timeout{connect=$connect, read=$read, write=$write, request=$request}"

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,13 @@ private constructor(
116116
return true
117117
}
118118

119-
return /* spotless:off */ other is AllModels && string == other.string && chatModel == other.chatModel && responsesOnlyModel == other.responsesOnlyModel /* spotless:on */
119+
return other is AllModels &&
120+
string == other.string &&
121+
chatModel == other.chatModel &&
122+
responsesOnlyModel == other.responsesOnlyModel
120123
}
121124

122-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(string, chatModel, responsesOnlyModel) /* spotless:on */
125+
override fun hashCode(): Int = Objects.hash(string, chatModel, responsesOnlyModel)
123126

124127
override fun toString(): String =
125128
when {
@@ -383,7 +386,7 @@ private constructor(
383386
return true
384387
}
385388

386-
return /* spotless:off */ other is ResponsesOnlyModel && value == other.value /* spotless:on */
389+
return other is ResponsesOnlyModel && value == other.value
387390
}
388391

389392
override fun hashCode() = value.hashCode()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ class ChatModel @JsonCreator private constructor(private val value: JsonField<St
483483
return true
484484
}
485485

486-
return /* spotless:off */ other is ChatModel && value == other.value /* spotless:on */
486+
return other is ChatModel && value == other.value
487487
}
488488

489489
override fun hashCode() = value.hashCode()

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

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ private constructor(
419419
return true
420420
}
421421

422-
return /* spotless:off */ other is Type && value == other.value /* spotless:on */
422+
return other is Type && value == other.value
423423
}
424424

425425
override fun hashCode() = value.hashCode()
@@ -520,10 +520,13 @@ private constructor(
520520
return true
521521
}
522522

523-
return /* spotless:off */ other is Value && string == other.string && number == other.number && bool == other.bool /* spotless:on */
523+
return other is Value &&
524+
string == other.string &&
525+
number == other.number &&
526+
bool == other.bool
524527
}
525528

526-
override fun hashCode(): Int = /* spotless:off */ Objects.hash(string, number, bool) /* spotless:on */
529+
override fun hashCode(): Int = Objects.hash(string, number, bool)
527530

528531
override fun toString(): String =
529532
when {
@@ -623,12 +626,14 @@ private constructor(
623626
return true
624627
}
625628

626-
return /* spotless:off */ other is ComparisonFilter && key == other.key && type == other.type && value == other.value && additionalProperties == other.additionalProperties /* spotless:on */
629+
return other is ComparisonFilter &&
630+
key == other.key &&
631+
type == other.type &&
632+
value == other.value &&
633+
additionalProperties == other.additionalProperties
627634
}
628635

629-
/* spotless:off */
630636
private val hashCode: Int by lazy { Objects.hash(key, type, value, additionalProperties) }
631-
/* spotless:on */
632637

633638
override fun hashCode(): Int = hashCode
634639

0 commit comments

Comments
 (0)