File tree Expand file tree Collapse file tree 8 files changed +30
-6
lines changed
src/main/java/com/theokanning/openai Expand file tree Collapse file tree 8 files changed +30
-6
lines changed Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >top.bella</groupId >
88 <artifactId >openai-java</artifactId >
9- <version >0.23.42 </version >
9+ <version >0.23.43 </version >
1010 </parent >
1111 <packaging >jar</packaging >
1212 <artifactId >openai-api</artifactId >
Original file line number Diff line number Diff line change 88import lombok .Data ;
99import lombok .NoArgsConstructor ;
1010
11+ import java .util .ArrayList ;
12+ import java .util .HashMap ;
1113import java .util .List ;
1214import java .util .Map ;
1315
@@ -101,12 +103,12 @@ public class Message {
101103 /**
102104 * A list of files attached to the message, and the tools they were added to.
103105 */
104- List <Attachment > attachments ;
106+ List <Attachment > attachments = new ArrayList <>() ;
105107
106108 /**
107109 * Set of 16 key-value pairs that can be attached to an object.
108110 * This can be useful for storing additional information about the object in a structured format.
109111 * Keys can be a maximum of 64 characters long, and values can be a maximum of 512 characters long.
110112 */
111- Map <String , String > metadata ;
113+ Map <String , String > metadata = new HashMap <>() ;
112114}
Original file line number Diff line number Diff line change 11package com .theokanning .openai .completion .chat ;
22
33import com .fasterxml .jackson .annotation .JsonIgnore ;
4+ import com .fasterxml .jackson .annotation .JsonInclude ;
45import com .fasterxml .jackson .annotation .JsonProperty ;
56import com .theokanning .openai .utils .JsonUtil ;
67import lombok .AllArgsConstructor ;
@@ -24,8 +25,17 @@ public class AssistantMessage implements ChatMessage {
2425
2526 // The contents of the reasoning message.
2627 @ JsonProperty ("reasoning_content" )
28+ @ JsonInclude (JsonInclude .Include .NON_NULL )
2729 String reasoningContent ;
2830
31+ @ JsonProperty ("reasoning_content_signature" )
32+ @ JsonInclude (JsonInclude .Include .NON_NULL )
33+ String reasoningContentSignature ;
34+
35+ @ JsonInclude (JsonInclude .Include .NON_NULL )
36+ @ JsonProperty ("redacted_reasoning_content" )
37+ private String redactedReasoningContent ;
38+
2939 //An optional name for the participant. Provides the model information to differentiate between participants of the same role.
3040 String name ;
3141
Original file line number Diff line number Diff line change 11package com .theokanning .openai .completion .chat ;
22
33import com .fasterxml .jackson .annotation .JsonIgnore ;
4+ import com .fasterxml .jackson .annotation .JsonInclude ;
45import com .fasterxml .jackson .annotation .JsonProperty ;
56import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
67import com .fasterxml .jackson .databind .annotation .JsonSerialize ;
@@ -27,6 +28,14 @@ public class AssistantMultipleMessage implements ChatMessage {
2728 @ JsonProperty ("reasoning_content" )
2829 String reasoningContent ;
2930
31+ @ JsonProperty ("reasoning_content_signature" )
32+ @ JsonInclude (JsonInclude .Include .NON_NULL )
33+ String reasoningContentSignature ;
34+
35+ @ JsonInclude (JsonInclude .Include .NON_NULL )
36+ @ JsonProperty ("redacted_reasoning_content" )
37+ private String redactedReasoningContent ;
38+
3039 //An optional name for the participant. Provides the model information to differentiate between participants of the same role.
3140 String name ;
3241
Original file line number Diff line number Diff line change 33import com .fasterxml .jackson .annotation .JsonIgnore ;
44import com .fasterxml .jackson .annotation .JsonProperty ;
55import com .theokanning .openai .Usage ;
6+ import com .theokanning .openai .common .LastError ;
67import lombok .Data ;
78
89import java .util .List ;
@@ -61,4 +62,6 @@ public class ChatCompletionChunk {
6162 */
6263 @ JsonIgnore
6364 String source ;
65+
66+ LastError error ;
6467}
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >top.bella</groupId >
88 <artifactId >openai-java</artifactId >
9- <version >0.23.42 </version >
9+ <version >0.23.43 </version >
1010 </parent >
1111 <packaging >jar</packaging >
1212
Original file line number Diff line number Diff line change 55
66 <groupId >top.bella</groupId >
77 <artifactId >openai-java</artifactId >
8- <version >0.23.42 </version >
8+ <version >0.23.43 </version >
99 <packaging >pom</packaging >
1010 <description >openai java 版本</description >
1111 <name >openai-java</name >
Original file line number Diff line number Diff line change 66 <parent >
77 <groupId >top.bella</groupId >
88 <artifactId >openai-java</artifactId >
9- <version >0.23.42 </version >
9+ <version >0.23.43 </version >
1010 </parent >
1111 <packaging >jar</packaging >
1212
You can’t perform that action at this time.
0 commit comments