File tree 8 files changed +29
-9
lines changed
main/kotlin/com/openai/models
test/kotlin/com/openai/models
8 files changed +29
-9
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "." : " 0.21.0 "
2
+ "." : " 0.21.1 "
3
3
}
Original file line number Diff line number Diff line change 1
1
configured_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 1
1
# Changelog
2
2
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
+
3
11
## 0.21.0 (2025-02-05)
4
12
5
13
Full 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 9
9
10
10
<!-- x-release-please-start-version -->
11
11
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 )
14
14
15
15
<!-- x-release-please-end -->
16
16
@@ -25,7 +25,7 @@ The REST API documentation can be found on [platform.openai.com](https://platfor
25
25
### Gradle
26
26
27
27
``` kotlin
28
- implementation(" com.openai:openai-java:0.21.0 " )
28
+ implementation(" com.openai:openai-java:0.21.1 " )
29
29
```
30
30
31
31
### Maven
@@ -34,7 +34,7 @@ implementation("com.openai:openai-java:0.21.0")
34
34
<dependency >
35
35
<groupId >com.openai</groupId >
36
36
<artifactId >openai-java</artifactId >
37
- <version >0.21.0 </version >
37
+ <version >0.21.1 </version >
38
38
</dependency >
39
39
```
40
40
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ repositories {
8
8
9
9
allprojects {
10
10
group = " com.openai"
11
- version = " 0.21.0 " // x-release-please-version
11
+ version = " 0.21.1 " // x-release-please-version
12
12
}
13
13
14
14
subprojects {
Original file line number Diff line number Diff line change @@ -891,6 +891,8 @@ private constructor(
891
891
892
892
companion object {
893
893
894
+ @JvmField val DEVELOPER = of(" developer" )
895
+
894
896
@JvmField val SYSTEM = of(" system" )
895
897
896
898
@JvmField val USER = of(" user" )
@@ -904,6 +906,7 @@ private constructor(
904
906
905
907
/* * An enum containing [Role]'s known values. */
906
908
enum class Known {
909
+ DEVELOPER ,
907
910
SYSTEM ,
908
911
USER ,
909
912
ASSISTANT ,
@@ -920,6 +923,7 @@ private constructor(
920
923
* - It was constructed with an arbitrary value using the [of] method.
921
924
*/
922
925
enum class Value {
926
+ DEVELOPER ,
923
927
SYSTEM ,
924
928
USER ,
925
929
ASSISTANT ,
@@ -939,6 +943,7 @@ private constructor(
939
943
*/
940
944
fun value (): Value =
941
945
when (this ) {
946
+ DEVELOPER -> Value .DEVELOPER
942
947
SYSTEM -> Value .SYSTEM
943
948
USER -> Value .USER
944
949
ASSISTANT -> Value .ASSISTANT
@@ -957,6 +962,7 @@ private constructor(
957
962
*/
958
963
fun known (): Known =
959
964
when (this ) {
965
+ DEVELOPER -> Known .DEVELOPER
960
966
SYSTEM -> Known .SYSTEM
961
967
USER -> Known .USER
962
968
ASSISTANT -> Known .ASSISTANT
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ private constructor(
25
25
26
26
companion object {
27
27
28
+ @JvmField val DEVELOPER = of(" developer" )
29
+
28
30
@JvmField val SYSTEM = of(" system" )
29
31
30
32
@JvmField val USER = of(" user" )
@@ -40,6 +42,7 @@ private constructor(
40
42
41
43
/* * An enum containing [ChatCompletionRole]'s known values. */
42
44
enum class Known {
45
+ DEVELOPER ,
43
46
SYSTEM ,
44
47
USER ,
45
48
ASSISTANT ,
@@ -57,6 +60,7 @@ private constructor(
57
60
* - It was constructed with an arbitrary value using the [of] method.
58
61
*/
59
62
enum class Value {
63
+ DEVELOPER ,
60
64
SYSTEM ,
61
65
USER ,
62
66
ASSISTANT ,
@@ -78,6 +82,7 @@ private constructor(
78
82
*/
79
83
fun value (): Value =
80
84
when (this ) {
85
+ DEVELOPER -> Value .DEVELOPER
81
86
SYSTEM -> Value .SYSTEM
82
87
USER -> Value .USER
83
88
ASSISTANT -> Value .ASSISTANT
@@ -96,6 +101,7 @@ private constructor(
96
101
*/
97
102
fun known (): Known =
98
103
when (this ) {
104
+ DEVELOPER -> Known .DEVELOPER
99
105
SYSTEM -> Known .SYSTEM
100
106
USER -> Known .USER
101
107
ASSISTANT -> Known .ASSISTANT
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class ChatCompletionChunkTest {
24
24
.build()
25
25
)
26
26
.refusal(" refusal" )
27
- .role(ChatCompletionChunk .Choice .Delta .Role .SYSTEM )
27
+ .role(ChatCompletionChunk .Choice .Delta .Role .DEVELOPER )
28
28
.addToolCall(
29
29
ChatCompletionChunk .Choice .Delta .ToolCall .builder()
30
30
.index(0L )
@@ -120,7 +120,7 @@ class ChatCompletionChunkTest {
120
120
.build()
121
121
)
122
122
.refusal(" refusal" )
123
- .role(ChatCompletionChunk .Choice .Delta .Role .SYSTEM )
123
+ .role(ChatCompletionChunk .Choice .Delta .Role .DEVELOPER )
124
124
.addToolCall(
125
125
ChatCompletionChunk .Choice .Delta .ToolCall .builder()
126
126
.index(0L )
You can’t perform that action at this time.
0 commit comments