File tree Expand file tree Collapse file tree 4 files changed +15
-3
lines changed
main/kotlin/com/openai/models
test/kotlin/com/openai/models Expand file tree Collapse file tree 4 files changed +15
-3
lines changed 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 @@ -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