Skip to content

Commit 7435cc2

Browse files
mengaimsjnlycklama
authored andcommitted
Fix aacs ga contract (#26258)
1 parent 3655c81 commit 7435cc2

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

specification/cognitiveservices/ContentSafety/models.tsp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ enum AnalyzeTextOutputType {
3838
enum AnalyzeImageOutputType {
3939
@doc("Output severities in four levels, the value could be 0,2,4,6.")
4040
FourSeverityLevels,
41-
42-
@doc("Output severities in eight levels, the value could be 0,1,2,3,4,5,6,7.")
43-
EightSeverityLevels,
4441
}
4542

4643
@doc("The text analysis request.")
@@ -91,7 +88,7 @@ model TextCategoriesAnalysis {
9188
@doc("The text analysis category.")
9289
category: TextCategory;
9390

94-
@doc("The value increases with the severity of the input content. The value of this field is determined by the outputType specified in the request. If 'FourSeverityLevels' or 'EightSeverityLevels' is chosen, this field will be included in the output.")
91+
@doc("The value increases with the severity of the input content. The value of this field is determined by the output type specified in the request. The output type could be ‘FourSeverityLevels or ‘EightSeverity Levels’, and the output value can be 0, 2, 4, 6 or 0, 1, 2, 3, 4, 5, 6, or 7.")
9592
severity?: int32;
9693
}
9794

@@ -128,7 +125,7 @@ model ImageCategoriesAnalysis {
128125
@doc("The image analysis category.")
129126
category: ImageCategory;
130127

131-
@doc("The value increases with the severity of the input content. The value of this field is determined by the output type specified in the request. The output type could be ‘FourSeverityLevels’ or ‘EightSeverity Levels’, and the output value can be 0, 2, 4, 6 or 0, 1, 2, 3, 4, 5, 6, or 7.")
128+
@doc("The value increases with the severity of the input content. The value of this field is determined by the output type specified in the request. The output type could be ‘FourSeverityLevels’, and the output value can be 0, 2, 4, 6.")
132129
severity?: int32;
133130
}
134131

specification/cognitiveservices/data-plane/ContentSafety/stable/2023-10-01/contentsafety.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,7 @@
622622
"type": "string",
623623
"description": "The type of image analysis output.",
624624
"enum": [
625-
"FourSeverityLevels",
626-
"EightSeverityLevels"
625+
"FourSeverityLevels"
627626
],
628627
"x-ms-enum": {
629628
"name": "AnalyzeImageOutputType",
@@ -633,11 +632,6 @@
633632
"name": "FourSeverityLevels",
634633
"value": "FourSeverityLevels",
635634
"description": "Output severities in four levels, the value could be 0,2,4,6."
636-
},
637-
{
638-
"name": "EightSeverityLevels",
639-
"value": "EightSeverityLevels",
640-
"description": "Output severities in eight levels, the value could be 0,1,2,3,4,5,6,7."
641635
}
642636
]
643637
}
@@ -817,7 +811,7 @@
817811
"severity": {
818812
"type": "integer",
819813
"format": "int32",
820-
"description": "The value increases with the severity of the input content. The value of this field is determined by the output type specified in the request. The output type could be ‘FourSeverityLevels’ or ‘EightSeverity Levels’, and the output value can be 0, 2, 4, 6 or 0, 1, 2, 3, 4, 5, 6, or 7."
814+
"description": "The value increases with the severity of the input content. The value of this field is determined by the output type specified in the request. The output type could be ‘FourSeverityLevels’, and the output value can be 0, 2, 4, 6."
821815
}
822816
},
823817
"required": [
@@ -1022,7 +1016,7 @@
10221016
"severity": {
10231017
"type": "integer",
10241018
"format": "int32",
1025-
"description": "The value increases with the severity of the input content. The value of this field is determined by the outputType specified in the request. If 'FourSeverityLevels' or 'EightSeverityLevels' is chosen, this field will be included in the output."
1019+
"description": "The value increases with the severity of the input content. The value of this field is determined by the output type specified in the request. The output type could be ‘FourSeverityLevels or ‘EightSeverity Levels’, and the output value can be 0, 2, 4, 6 or 0, 1, 2, 3, 4, 5, 6, or 7."
10261020
}
10271021
},
10281022
"required": [

0 commit comments

Comments
 (0)