OpenAI::CreateModerationResponseResultsItem
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(flagged : Bool = false, categories : CreateModerationResponseResultsItemCategories = CreateModerationResponseResultsItemCategories.new, category_scores : CreateModerationResponseResultsItemCategoryScores = CreateModerationResponseResultsItemCategoryScores.new, category_applied_input_types : CreateModerationResponseResultsItemCategoryAppliedInputTypes = CreateModerationResponseResultsItemCategoryAppliedInputTypes.new)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
categories=(categories : CreateModerationResponseResultsItemCategories)
A list of the categories, and whether they are flagged or not.
category_applied_input_types
A list of the categories along with the input type(s) that the score applies to.
category_applied_input_types=(category_applied_input_types : CreateModerationResponseResultsItemCategoryAppliedInputTypes)
A list of the categories along with the input type(s) that the score applies to.
category_scores=(category_scores : CreateModerationResponseResultsItemCategoryScores)
A list of the categories along with their scores as predicted by model.