struct OpenAI::ModerationResultCategories

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 harassment : Bool #

Content that expresses, incites, or promotes harassing language towards any target.


[View source]
def harassment_threatening : Bool #

[View source]
def hate : Bool #

Content that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. Hateful content aimed at non-protected groups (e.g., chess players) is harassment.


[View source]
def hate_threatening : Bool #

[View source]
def self_harm : Bool #

[View source]
def self_harm_instructions : Bool #

[View source]
def self_harm_intent : Bool #

[View source]
def sexual : Bool #

Content meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness).


[View source]
def sexual_minors : Bool #

[View source]
def violence : Bool #

Content that depicts death, violence, or physical injury.


[View source]
def violence_graphic : Bool #

[View source]