Skip to content

Commit da9e38d

Browse files
committed
feat: builder default value
1 parent 0747eb6 commit da9e38d

34 files changed

+36
-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.63</version>
9+
<version>0.23.64</version>
1010
</parent>
1111
<packaging>jar</packaging>
1212
<artifactId>openai-api</artifactId>

api/src/main/java/com/theokanning/openai/response/content/ContainerFileCitation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class ContainerFileCitation extends Annotation {
2424
/**
2525
* Annotation type, always "container_file_citation".
2626
*/
27+
@Builder.Default
2728
private String type = "container_file_citation";
2829

2930
/**

api/src/main/java/com/theokanning/openai/response/content/FileCitation.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class FileCitation extends Annotation {
2424
/**
2525
* Annotation type, always "file_citation".
2626
*/
27+
@Builder.Default
2728
private String type = "file_citation";
2829

2930
/**

api/src/main/java/com/theokanning/openai/response/content/FilePath.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class FilePath extends Annotation {
2424
/**
2525
* Annotation type, always "file_path".
2626
*/
27+
@Builder.Default
2728
private String type = "file_path";
2829

2930
/**

api/src/main/java/com/theokanning/openai/response/content/InputAudio.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ public class InputAudio extends InputContent {
2222
/**
2323
* Content type, always "input_audio".
2424
*/
25+
@Builder.Default
2526
private String type = "input_audio";
2627

2728
/**

api/src/main/java/com/theokanning/openai/response/content/InputFile.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class InputFile extends InputContent {
2020
/**
2121
* Content type, always "input_file".
2222
*/
23+
@Builder.Default
2324
private String type = "input_file";
2425

2526
/**

api/src/main/java/com/theokanning/openai/response/content/InputImage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class InputImage extends InputContent {
2020
/**
2121
* Content type, always "input_image".
2222
*/
23+
@Builder.Default
2324
private String type = "input_image";
2425

2526
/**

api/src/main/java/com/theokanning/openai/response/content/InputText.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class InputText extends InputContent {
1919
/**
2020
* Content type, always "input_text".
2121
*/
22+
@Builder.Default
2223
private String type = "input_text";
2324

2425
/**

api/src/main/java/com/theokanning/openai/response/content/OutputText.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public class OutputText extends OutputContent {
2424
/**
2525
* Content type, always "output_text".
2626
*/
27+
@Builder.Default
2728
private String type = "output_text";
2829

2930
/**

api/src/main/java/com/theokanning/openai/response/content/Reasoning.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public class Reasoning implements ResponseItem {
2727
/**
2828
* Reasoning type, always "reasoning".
2929
*/
30+
@Builder.Default
3031
private String type = "reasoning";
3132

3233
/**
@@ -65,6 +66,7 @@ public String getType() {
6566
@NoArgsConstructor
6667
@AllArgsConstructor
6768
public static class SummaryText {
69+
@Builder.Default
6870
private String type = "summary_text";
6971
private String text;
7072
@JsonIgnore
@@ -78,6 +80,7 @@ public static class SummaryText {
7880
@NoArgsConstructor
7981
@AllArgsConstructor
8082
public static class ReasoningText {
83+
@Builder.Default
8184
private String type = "reasoning_text";
8285
private String text;
8386
@JsonIgnore

0 commit comments

Comments
 (0)