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 {
1717type Result struct {
1818 Categories ResultCategories `json:"categories"`
1919 CategoryScores ResultCategoryScores `json:"category_scores"`
20- Flagged int `json:"flagged"`
20+ Flagged bool `json:"flagged"`
2121}
2222
2323// ResultCategories represents Categories of Result
2424type 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"`
3232}
3333
3434// ResultCategoryScores represents CategoryScores of Result
You can’t perform that action at this time.
0 commit comments