File tree Expand file tree Collapse file tree 7 files changed +17
-4
lines changed
src/main/java/com/theokanning/openai Expand file tree Collapse file tree 7 files changed +17
-4
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.36 </version >
9+ <version >0.23.37 </version >
1010 </parent >
1111 <packaging >jar</packaging >
1212 <artifactId >openai-api</artifactId >
Original file line number Diff line number Diff line change 11package com .theokanning .openai .assistants .run ;
22
3+ import com .fasterxml .jackson .annotation .JsonInclude ;
34import com .fasterxml .jackson .annotation .JsonProperty ;
45import lombok .AllArgsConstructor ;
56import lombok .Builder ;
@@ -33,13 +34,16 @@ public class ToolCall {
3334 String type ;
3435
3536 @ JsonProperty ("code_interpreter" )
37+ @ JsonInclude (JsonInclude .Include .NON_NULL )
3638 ToolCallCodeInterpreter codeInterpreter ;
3739
3840 /**
3941 * For now, this is always going to be an empty object.
4042 */
4143 @ JsonProperty ("file_search" )
44+ @ JsonInclude (JsonInclude .Include .NON_NULL )
4245 ToolCallFileSearch fileSearch ;
4346
47+ @ JsonInclude (JsonInclude .Include .NON_NULL )
4448 ToolCallFunction function ;
4549}
Original file line number Diff line number Diff line change 11package com .theokanning .openai .assistants .run ;
22
3+ import com .fasterxml .jackson .annotation .JsonInclude ;
34import com .fasterxml .jackson .databind .JsonNode ;
45import com .fasterxml .jackson .databind .annotation .JsonDeserialize ;
56import com .fasterxml .jackson .databind .annotation .JsonSerialize ;
2122@ AllArgsConstructor
2223public class ToolCallFunction {
2324
25+ @ JsonInclude (JsonInclude .Include .NON_NULL )
2426 String name ;
2527
2628 @ JsonSerialize (using = ChatFunctionCallArgumentsSerializerAndDeserializer .Serializer .class )
2729 @ JsonDeserialize (using = ChatFunctionCallArgumentsSerializerAndDeserializer .Deserializer .class )
30+ @ JsonInclude (JsonInclude .Include .NON_NULL )
2831 JsonNode arguments ;
2932
3033 //这个字段只存在于runStep 里面
34+ @ JsonInclude (JsonInclude .Include .NON_NULL )
3135 String output ;
3236}
Original file line number Diff line number Diff line change @@ -56,4 +56,9 @@ public class CreateImageRequest {
5656 * A unique identifier representing your end-user, which will help OpenAI to monitor and detect abuse.
5757 */
5858 String user ;
59+
60+ /**
61+ * doubao模型使用:是否生成水印
62+ */
63+ Boolean watermark ;
5964}
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.36 </version >
9+ <version >0.23.37 </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.36 </version >
8+ <version >0.23.37 </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.36 </version >
9+ <version >0.23.37 </version >
1010 </parent >
1111 <packaging >jar</packaging >
1212
You can’t perform that action at this time.
0 commit comments