File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -17,18 +17,18 @@ type ModerationRequest struct {
17
17
type Result struct {
18
18
Categories ResultCategories `json:"categories"`
19
19
CategoryScores ResultCategoryScores `json:"category_scores"`
20
- Flagged int `json:"flagged"`
20
+ Flagged bool `json:"flagged"`
21
21
}
22
22
23
23
// ResultCategories represents Categories of Result
24
24
type ResultCategories struct {
25
- Hate int `json:"hate"`
26
- HateThreatening int `json:"hate/threatening"`
27
- SelfHarm int `json:"self-harm"`
28
- Sexual int `json:"sexual"`
29
- SexualMinors int `json:"sexual/minors"`
30
- Violence int `json:"violence"`
31
- ViolenceGraphic int `json:"violence/graphic"`
25
+ Hate bool `json:"hate"`
26
+ HateThreatening bool `json:"hate/threatening"`
27
+ SelfHarm bool `json:"self-harm"`
28
+ Sexual bool `json:"sexual"`
29
+ SexualMinors bool `json:"sexual/minors"`
30
+ Violence bool `json:"violence"`
31
+ ViolenceGraphic bool `json:"violence/graphic"`
32
32
}
33
33
34
34
// ResultCategoryScores represents CategoryScores of Result
You can’t perform that action at this time.
0 commit comments