Model options available for classification requests.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field model_type . If this field is not set, then the v1_model will be used by default. model_type can be only one of the following: |
|
v1 |
Setting this field will use the V1 model and V1 content categories version. The V1 model is a legacy model; support for this will be discontinued in the future. |
v2 |
Setting this field will use the V2 model with the appropriate content categories version. The V2 model is a better performing model. |
V1Model
This type has no fields.
Options for the V1 model.
V2Model
Options for the V2 model.
JSON representation |
---|
{
"contentCategoriesVersion": enum ( |
Fields | |
---|---|
content |
The content categories used for classification. |
ContentCategoriesVersion
The content categories used for classification.
Enums | |
---|---|
CONTENT_CATEGORIES_VERSION_UNSPECIFIED |
If ContentCategoriesVersion is not specified, this option will default to V1 . |
V1 |
Legacy content categories of our initial launch in 2017. |
V2 |
Updated content categories in 2022. |