Skip to content

Commit 9ea7a5c

Browse files
committed
feat: Json Include
1 parent 4087243 commit 9ea7a5c

File tree

9 files changed

+12
-4
lines changed

9 files changed

+12
-4
lines changed

api/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>top.bella</groupId>
88
<artifactId>openai-java</artifactId>
9-
<version>0.23.37</version>
9+
<version>0.23.38</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212
<artifactId>openai-api</artifactId>

api/src/main/java/com/theokanning/openai/assistants/assistant/Assistant.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
@NoArgsConstructor
1515
@AllArgsConstructor
1616
@Data
17+
@JsonInclude(JsonInclude.Include.NON_NULL)
1718
public class Assistant {
1819

1920
/**

api/src/main/java/com/theokanning/openai/assistants/message/Message.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.theokanning.openai.assistants.message;
22

3+
import com.fasterxml.jackson.annotation.JsonInclude;
34
import com.fasterxml.jackson.annotation.JsonProperty;
45
import com.theokanning.openai.assistants.thread.Attachment;
56
import lombok.AllArgsConstructor;
@@ -20,6 +21,7 @@
2021
@NoArgsConstructor
2122
@AllArgsConstructor
2223
@Data
24+
@JsonInclude(JsonInclude.Include.NON_NULL)
2325
public class Message {
2426
/**
2527
* The identifier, which can be referenced in API endpoints.

api/src/main/java/com/theokanning/openai/assistants/run/Run.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
@Builder
2525
@NoArgsConstructor
2626
@AllArgsConstructor
27+
@JsonInclude(JsonInclude.Include.NON_NULL)
2728
public class Run {
2829

2930
private String id;

api/src/main/java/com/theokanning/openai/assistants/run_step/RunStep.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.theokanning.openai.assistants.run_step;
22

3+
import com.fasterxml.jackson.annotation.JsonInclude;
34
import com.fasterxml.jackson.annotation.JsonProperty;
45
import com.theokanning.openai.Usage;
56
import com.theokanning.openai.common.LastError;
@@ -14,6 +15,7 @@
1415
@NoArgsConstructor
1516
@AllArgsConstructor
1617
@Data
18+
@JsonInclude(JsonInclude.Include.NON_NULL)
1719
public class RunStep {
1820

1921
private String id;

api/src/main/java/com/theokanning/openai/assistants/thread/Thread.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.theokanning.openai.assistants.thread;
22

3+
import com.fasterxml.jackson.annotation.JsonInclude;
34
import com.fasterxml.jackson.annotation.JsonProperty;
45
import com.theokanning.openai.assistants.assistant.ToolResources;
56
import lombok.AllArgsConstructor;
@@ -16,6 +17,7 @@
1617
@NoArgsConstructor
1718
@AllArgsConstructor
1819
@Data
20+
@JsonInclude(JsonInclude.Include.NON_NULL)
1921
public class Thread {
2022
/**
2123
* The identifier, which can be referenced in API endpoints.

client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>top.bella</groupId>
88
<artifactId>openai-java</artifactId>
9-
<version>0.23.37</version>
9+
<version>0.23.38</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>top.bella</groupId>
77
<artifactId>openai-java</artifactId>
8-
<version>0.23.37</version>
8+
<version>0.23.38</version>
99
<packaging>pom</packaging>
1010
<description>openai java 版本</description>
1111
<name>openai-java</name>

service/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>top.bella</groupId>
88
<artifactId>openai-java</artifactId>
9-
<version>0.23.37</version>
9+
<version>0.23.38</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212

0 commit comments

Comments
 (0)