Update moderation.go (#29)
This commit is contained in:
@@ -17,18 +17,18 @@ type ModerationRequest struct {
|
|||||||
type Result struct {
|
type Result struct {
|
||||||
Categories ResultCategories `json:"categories"`
|
Categories ResultCategories `json:"categories"`
|
||||||
CategoryScores ResultCategoryScores `json:"category_scores"`
|
CategoryScores ResultCategoryScores `json:"category_scores"`
|
||||||
Flagged int `json:"flagged"`
|
Flagged bool `json:"flagged"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResultCategories represents Categories of Result
|
// ResultCategories represents Categories of Result
|
||||||
type ResultCategories struct {
|
type ResultCategories struct {
|
||||||
Hate int `json:"hate"`
|
Hate bool `json:"hate"`
|
||||||
HateThreatening int `json:"hate/threatening"`
|
HateThreatening bool `json:"hate/threatening"`
|
||||||
SelfHarm int `json:"self-harm"`
|
SelfHarm bool `json:"self-harm"`
|
||||||
Sexual int `json:"sexual"`
|
Sexual bool `json:"sexual"`
|
||||||
SexualMinors int `json:"sexual/minors"`
|
SexualMinors bool `json:"sexual/minors"`
|
||||||
Violence int `json:"violence"`
|
Violence bool `json:"violence"`
|
||||||
ViolenceGraphic int `json:"violence/graphic"`
|
ViolenceGraphic bool `json:"violence/graphic"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResultCategoryScores represents CategoryScores of Result
|
// ResultCategoryScores represents CategoryScores of Result
|
||||||
|
|||||||
Reference in New Issue
Block a user