|
7 | 7 | import com.cohere.api.types.DatasetType; |
8 | 8 | import com.fasterxml.jackson.annotation.JsonAnyGetter; |
9 | 9 | import com.fasterxml.jackson.annotation.JsonAnySetter; |
| 10 | +import com.fasterxml.jackson.annotation.JsonIgnore; |
10 | 11 | import com.fasterxml.jackson.annotation.JsonIgnoreProperties; |
11 | 12 | import com.fasterxml.jackson.annotation.JsonInclude; |
12 | | -import com.fasterxml.jackson.annotation.JsonProperty; |
13 | 13 | import com.fasterxml.jackson.annotation.JsonSetter; |
14 | 14 | import com.fasterxml.jackson.annotation.Nulls; |
15 | 15 | import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
@@ -66,63 +66,63 @@ private DatasetsCreateRequest( |
66 | 66 | /** |
67 | 67 | * @return List of names of fields that will be persisted in the Dataset. By default the Dataset will retain only the required fields indicated in the <a href="https://docs.cohere.com/docs/datasets#dataset-types">schema for the corresponding Dataset type</a>. For example, datasets of type <code>embed-input</code> will drop all fields other than the required <code>text</code> field. If any of the fields in <code>keep_fields</code> are missing from the uploaded file, Dataset validation will fail. |
68 | 68 | */ |
69 | | - @JsonProperty("keep_fields") |
| 69 | + @JsonIgnore |
70 | 70 | public Optional<List<String>> getKeepFields() { |
71 | 71 | return keepFields; |
72 | 72 | } |
73 | 73 |
|
74 | 74 | /** |
75 | 75 | * @return List of names of fields that will be persisted in the Dataset. By default the Dataset will retain only the required fields indicated in the <a href="https://docs.cohere.com/docs/datasets#dataset-types">schema for the corresponding Dataset type</a>. For example, Datasets of type <code>embed-input</code> will drop all fields other than the required <code>text</code> field. If any of the fields in <code>optional_fields</code> are missing from the uploaded file, Dataset validation will pass. |
76 | 76 | */ |
77 | | - @JsonProperty("optional_fields") |
| 77 | + @JsonIgnore |
78 | 78 | public Optional<List<String>> getOptionalFields() { |
79 | 79 | return optionalFields; |
80 | 80 | } |
81 | 81 |
|
82 | 82 | /** |
83 | 83 | * @return The name of the uploaded dataset. |
84 | 84 | */ |
85 | | - @JsonProperty("name") |
| 85 | + @JsonIgnore |
86 | 86 | public String getName() { |
87 | 87 | return name; |
88 | 88 | } |
89 | 89 |
|
90 | 90 | /** |
91 | 91 | * @return The dataset type, which is used to validate the data. The only valid type is <code>embed-input</code> used in conjunction with the Embed Jobs API. |
92 | 92 | */ |
93 | | - @JsonProperty("type") |
| 93 | + @JsonIgnore |
94 | 94 | public DatasetType getType() { |
95 | 95 | return type; |
96 | 96 | } |
97 | 97 |
|
98 | 98 | /** |
99 | 99 | * @return Indicates if the original file should be stored. |
100 | 100 | */ |
101 | | - @JsonProperty("keep_original_file") |
| 101 | + @JsonIgnore |
102 | 102 | public Optional<Boolean> getKeepOriginalFile() { |
103 | 103 | return keepOriginalFile; |
104 | 104 | } |
105 | 105 |
|
106 | 106 | /** |
107 | 107 | * @return Indicates whether rows with malformed input should be dropped (instead of failing the validation check). Dropped rows will be returned in the warnings field. |
108 | 108 | */ |
109 | | - @JsonProperty("skip_malformed_input") |
| 109 | + @JsonIgnore |
110 | 110 | public Optional<Boolean> getSkipMalformedInput() { |
111 | 111 | return skipMalformedInput; |
112 | 112 | } |
113 | 113 |
|
114 | 114 | /** |
115 | 115 | * @return Raw .txt uploads will be split into entries using the text_separator value. |
116 | 116 | */ |
117 | | - @JsonProperty("text_separator") |
| 117 | + @JsonIgnore |
118 | 118 | public Optional<String> getTextSeparator() { |
119 | 119 | return textSeparator; |
120 | 120 | } |
121 | 121 |
|
122 | 122 | /** |
123 | 123 | * @return The delimiter used for .csv uploads. |
124 | 124 | */ |
125 | | - @JsonProperty("csv_delimiter") |
| 125 | + @JsonIgnore |
126 | 126 | public Optional<String> getCsvDelimiter() { |
127 | 127 | return csvDelimiter; |
128 | 128 | } |
|
0 commit comments