@@ -275,12 +275,12 @@ func (r *ExtensionConfigAITasks) UnmarshalJSON(data []byte) error {
275275type ExtensionConfigAITasksTaskUnion struct {
276276 Instruction string `json:"instruction"`
277277 // Any of "select_tags", "select_metadata", "yes_no".
278- Type string `json:"type"`
278+ Type string `json:"type"`
279+ MaxSelections int64 `json:"max_selections"`
280+ MinSelections int64 `json:"min_selections"`
279281 // This field is a union of [[]string],
280282 // [[]ExtensionConfigAITasksTaskSelectMetadataVocabularyUnion]
281- Vocabulary ExtensionConfigAITasksTaskUnionVocabulary `json:"vocabulary"`
282- MaxSelections int64 `json:"max_selections"`
283- MinSelections int64 `json:"min_selections"`
283+ Vocabulary ExtensionConfigAITasksTaskUnionVocabulary `json:"vocabulary"`
284284 // This field is from variant [ExtensionConfigAITasksTaskSelectMetadata].
285285 Field string `json:"field"`
286286 // This field is from variant [ExtensionConfigAITasksTaskYesNo].
@@ -292,9 +292,9 @@ type ExtensionConfigAITasksTaskUnion struct {
292292 JSON struct {
293293 Instruction respjson.Field
294294 Type respjson.Field
295- Vocabulary respjson.Field
296295 MaxSelections respjson.Field
297296 MinSelections respjson.Field
297+ Vocabulary respjson.Field
298298 Field respjson.Field
299299 OnNo respjson.Field
300300 OnUnknown respjson.Field
@@ -386,20 +386,20 @@ type ExtensionConfigAITasksTaskSelectTags struct {
386386 Instruction string `json:"instruction,required"`
387387 // Task type that analyzes the image and adds matching tags from a vocabulary.
388388 Type constant.SelectTags `json:"type,required"`
389- // Array of possible tag values. Combined length of all strings must not exceed 500
390- // characters. Cannot contain the `%` character.
391- Vocabulary []string `json:"vocabulary,required"`
392389 // Maximum number of tags to select from the vocabulary.
393390 MaxSelections int64 `json:"max_selections"`
394391 // Minimum number of tags to select from the vocabulary.
395392 MinSelections int64 `json:"min_selections"`
393+ // Array of possible tag values. Combined length of all strings must not exceed 500
394+ // characters. Cannot contain the `%` character.
395+ Vocabulary []string `json:"vocabulary"`
396396 // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
397397 JSON struct {
398398 Instruction respjson.Field
399399 Type respjson.Field
400- Vocabulary respjson.Field
401400 MaxSelections respjson.Field
402401 MinSelections respjson.Field
402+ Vocabulary respjson.Field
403403 ExtraFields map [string ]respjson.Field
404404 raw string
405405 } `json:"-"`
@@ -1377,17 +1377,17 @@ func init() {
13771377 )
13781378}
13791379
1380- // The properties Instruction, Type, Vocabulary are required.
1380+ // The properties Instruction, Type are required.
13811381type ExtensionConfigAITasksTaskSelectTagsParam struct {
13821382 // The question or instruction for the AI to analyze the image.
13831383 Instruction string `json:"instruction,required"`
1384- // Array of possible tag values. Combined length of all strings must not exceed 500
1385- // characters. Cannot contain the `%` character.
1386- Vocabulary []string `json:"vocabulary,omitzero,required"`
13871384 // Maximum number of tags to select from the vocabulary.
13881385 MaxSelections param.Opt [int64 ] `json:"max_selections,omitzero"`
13891386 // Minimum number of tags to select from the vocabulary.
13901387 MinSelections param.Opt [int64 ] `json:"min_selections,omitzero"`
1388+ // Array of possible tag values. Combined length of all strings must not exceed 500
1389+ // characters. Cannot contain the `%` character.
1390+ Vocabulary []string `json:"vocabulary,omitzero"`
13911391 // Task type that analyzes the image and adds matching tags from a vocabulary.
13921392 //
13931393 // This field can be elided, and will marshal its zero value as "select_tags".
@@ -2181,17 +2181,17 @@ func init() {
21812181 )
21822182}
21832183
2184- // The properties Instruction, Type, Vocabulary are required.
2184+ // The properties Instruction, Type are required.
21852185type ExtensionAITasksTaskSelectTagsParam struct {
21862186 // The question or instruction for the AI to analyze the image.
21872187 Instruction string `json:"instruction,required"`
2188- // Array of possible tag values. Combined length of all strings must not exceed 500
2189- // characters. Cannot contain the `%` character.
2190- Vocabulary []string `json:"vocabulary,omitzero,required"`
21912188 // Maximum number of tags to select from the vocabulary.
21922189 MaxSelections param.Opt [int64 ] `json:"max_selections,omitzero"`
21932190 // Minimum number of tags to select from the vocabulary.
21942191 MinSelections param.Opt [int64 ] `json:"min_selections,omitzero"`
2192+ // Array of possible tag values. Combined length of all strings must not exceed 500
2193+ // characters. Cannot contain the `%` character.
2194+ Vocabulary []string `json:"vocabulary,omitzero"`
21952195 // Task type that analyzes the image and adds matching tags from a vocabulary.
21962196 //
21972197 // This field can be elided, and will marshal its zero value as "select_tags".
0 commit comments