struct OpenAI::ModerationResult

Included Modules

Extended Modules

Defined in:

openai/api/moderation.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def categories : ModerationResultCategories #

A list of the categories, and whether they are flagged or not.


[View source]
def category_scores : ModerationResultCategoryScores #

A list of the categories along with their scores as predicted by model.


[View source]
def flagged : Bool #

Whether the content violates OpenAI's usage policies.


[View source]