struct OpenAI::ModerationResult
- OpenAI::ModerationResult
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/moderation.crConstructors
Instance Method Summary
-
#categories : ModerationResultCategories
A list of the categories, and whether they are flagged or not.
-
#category_scores : ModerationResultCategoryScores
A list of the categories along with their scores as predicted by model.
-
#flagged : Bool
Whether the content violates OpenAI's usage policies.
Constructor Detail
Instance Method Detail
def categories : ModerationResultCategories
#
A list of the categories, and whether they are flagged or not.
def category_scores : ModerationResultCategoryScores
#
A list of the categories along with their scores as predicted by model.