File tree Expand file tree Collapse file tree 8 files changed +29
-9
lines changed
main/kotlin/com/openai/models
test/kotlin/com/openai/models Expand file tree Collapse file tree 8 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 11{
2- "." : " 0.21.0 "
2+ "." : " 0.21.1 "
33}
Original file line number Diff line number Diff line change 11configured_endpoints : 61
2- openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-6204952a29973265b9c0d66fc67ffaf53c6a90ae4d75cdacf9d147676f5274c9 .yml
2+ openapi_spec_url : https://storage.googleapis.com/stainless-sdk-openapi-specs/openai-fc5dbc19505b0035f9e7f88868619f4fb519b048bde011f6154f3132d4be71fb .yml
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.21.1 (2025-02-05)
4+
5+ Full Changelog: [ v0.21.0...v0.21.1] ( https://github.com/openai/openai-java/compare/v0.21.0...v0.21.1 )
6+
7+ ### Bug Fixes
8+
9+ * ** api/types:** correct audio duration & role types ([ #199 ] ( https://github.com/openai/openai-java/issues/199 ) ) ([ 5b57a0d] ( https://github.com/openai/openai-java/commit/5b57a0df88804deed4486d0271f0e62c1ea8c130 ) )
10+
311## 0.21.0 (2025-02-05)
412
513Full Changelog: [ v0.20.0...v0.21.0] ( https://github.com/openai/openai-java/compare/v0.20.0...v0.21.0 )
Original file line number Diff line number Diff line change 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.21.0 )
13- [ ![ javadoc] ( https://javadoc.io/badge2/com.openai/openai-java/0.21.0 /javadoc.svg )] ( https://javadoc.io/doc/com.openai/openai-java/0.21.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.21.1 )
13+ [ ![ javadoc] ( https://javadoc.io/badge2/com.openai/openai-java/0.21.1 /javadoc.svg )] ( https://javadoc.io/doc/com.openai/openai-java/0.21.1 )
1414
1515<!-- x-release-please-end -->
1616
@@ -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.21.0 " )
28+ implementation(" com.openai:openai-java:0.21.1 " )
2929```
3030
3131### Maven
@@ -34,7 +34,7 @@ implementation("com.openai:openai-java:0.21.0")
3434<dependency >
3535 <groupId >com.openai</groupId >
3636 <artifactId >openai-java</artifactId >
37- <version >0.21.0 </version >
37+ <version >0.21.1 </version >
3838</dependency >
3939```
4040
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ repositories {
88
99allprojects {
1010 group = " com.openai"
11- version = " 0.21.0 " // x-release-please-version
11+ version = " 0.21.1 " // x-release-please-version
1212}
1313
1414subprojects {
Original file line number Diff line number Diff line change @@ -891,6 +891,8 @@ private constructor(
891891
892892 companion object {
893893
894+ @JvmField val DEVELOPER = of(" developer" )
895+
894896 @JvmField val SYSTEM = of(" system" )
895897
896898 @JvmField val USER = of(" user" )
@@ -904,6 +906,7 @@ private constructor(
904906
905907 /* * An enum containing [Role]'s known values. */
906908 enum class Known {
909+ DEVELOPER ,
907910 SYSTEM ,
908911 USER ,
909912 ASSISTANT ,
@@ -920,6 +923,7 @@ private constructor(
920923 * - It was constructed with an arbitrary value using the [of] method.
921924 */
922925 enum class Value {
926+ DEVELOPER ,
923927 SYSTEM ,
924928 USER ,
925929 ASSISTANT ,
@@ -939,6 +943,7 @@ private constructor(
939943 */
940944 fun value (): Value =
941945 when (this ) {
946+ DEVELOPER -> Value .DEVELOPER
942947 SYSTEM -> Value .SYSTEM
943948 USER -> Value .USER
944949 ASSISTANT -> Value .ASSISTANT
@@ -957,6 +962,7 @@ private constructor(
957962 */
958963 fun known (): Known =
959964 when (this ) {
965+ DEVELOPER -> Known .DEVELOPER
960966 SYSTEM -> Known .SYSTEM
961967 USER -> Known .USER
962968 ASSISTANT -> Known .ASSISTANT
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ private constructor(
2525
2626 companion object {
2727
28+ @JvmField val DEVELOPER = of(" developer" )
29+
2830 @JvmField val SYSTEM = of(" system" )
2931
3032 @JvmField val USER = of(" user" )
@@ -40,6 +42,7 @@ private constructor(
4042
4143 /* * An enum containing [ChatCompletionRole]'s known values. */
4244 enum class Known {
45+ DEVELOPER ,
4346 SYSTEM ,
4447 USER ,
4548 ASSISTANT ,
@@ -57,6 +60,7 @@ private constructor(
5760 * - It was constructed with an arbitrary value using the [of] method.
5861 */
5962 enum class Value {
63+ DEVELOPER ,
6064 SYSTEM ,
6165 USER ,
6266 ASSISTANT ,
@@ -78,6 +82,7 @@ private constructor(
7882 */
7983 fun value (): Value =
8084 when (this ) {
85+ DEVELOPER -> Value .DEVELOPER
8186 SYSTEM -> Value .SYSTEM
8287 USER -> Value .USER
8388 ASSISTANT -> Value .ASSISTANT
@@ -96,6 +101,7 @@ private constructor(
96101 */
97102 fun known (): Known =
98103 when (this ) {
104+ DEVELOPER -> Known .DEVELOPER
99105 SYSTEM -> Known .SYSTEM
100106 USER -> Known .USER
101107 ASSISTANT -> Known .ASSISTANT
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class ChatCompletionChunkTest {
2424 .build()
2525 )
2626 .refusal(" refusal" )
27- .role(ChatCompletionChunk .Choice .Delta .Role .SYSTEM )
27+ .role(ChatCompletionChunk .Choice .Delta .Role .DEVELOPER )
2828 .addToolCall(
2929 ChatCompletionChunk .Choice .Delta .ToolCall .builder()
3030 .index(0L )
@@ -120,7 +120,7 @@ class ChatCompletionChunkTest {
120120 .build()
121121 )
122122 .refusal(" refusal" )
123- .role(ChatCompletionChunk .Choice .Delta .Role .SYSTEM )
123+ .role(ChatCompletionChunk .Choice .Delta .Role .DEVELOPER )
124124 .addToolCall(
125125 ChatCompletionChunk .Choice .Delta .ToolCall .builder()
126126 .index(0L )
You can’t perform that action at this time.
0 commit comments