@@ -146,30 +146,56 @@ func (r *ModerationCategories) UnmarshalJSON(data []byte) error {
146
146
// A list of the categories along with the input type(s) that the score applies to.
147
147
type ModerationCategoryAppliedInputTypes struct {
148
148
// The applied input type(s) for the category 'harassment'.
149
+ //
150
+ // Any of "text".
149
151
Harassment []string `json:"harassment,required"`
150
152
// The applied input type(s) for the category 'harassment/threatening'.
153
+ //
154
+ // Any of "text".
151
155
HarassmentThreatening []string `json:"harassment/threatening,required"`
152
156
// The applied input type(s) for the category 'hate'.
157
+ //
158
+ // Any of "text".
153
159
Hate []string `json:"hate,required"`
154
160
// The applied input type(s) for the category 'hate/threatening'.
161
+ //
162
+ // Any of "text".
155
163
HateThreatening []string `json:"hate/threatening,required"`
156
164
// The applied input type(s) for the category 'illicit'.
165
+ //
166
+ // Any of "text".
157
167
Illicit []string `json:"illicit,required"`
158
168
// The applied input type(s) for the category 'illicit/violent'.
169
+ //
170
+ // Any of "text".
159
171
IllicitViolent []string `json:"illicit/violent,required"`
160
172
// The applied input type(s) for the category 'self-harm'.
173
+ //
174
+ // Any of "text", "image".
161
175
SelfHarm []string `json:"self-harm,required"`
162
176
// The applied input type(s) for the category 'self-harm/instructions'.
177
+ //
178
+ // Any of "text", "image".
163
179
SelfHarmInstructions []string `json:"self-harm/instructions,required"`
164
180
// The applied input type(s) for the category 'self-harm/intent'.
181
+ //
182
+ // Any of "text", "image".
165
183
SelfHarmIntent []string `json:"self-harm/intent,required"`
166
184
// The applied input type(s) for the category 'sexual'.
185
+ //
186
+ // Any of "text", "image".
167
187
Sexual []string `json:"sexual,required"`
168
188
// The applied input type(s) for the category 'sexual/minors'.
189
+ //
190
+ // Any of "text".
169
191
SexualMinors []string `json:"sexual/minors,required"`
170
192
// The applied input type(s) for the category 'violence'.
193
+ //
194
+ // Any of "text", "image".
171
195
Violence []string `json:"violence,required"`
172
196
// The applied input type(s) for the category 'violence/graphic'.
197
+ //
198
+ // Any of "text", "image".
173
199
ViolenceGraphic []string `json:"violence/graphic,required"`
174
200
// Metadata for the response, check the presence of optional fields with the
175
201
// [resp.Field.IsPresent] method.
0 commit comments