struct OpenAI::ModerationResultCategoryScores

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 : Float64 #

The score for the category 'harassment'.


[View source]
def harassment_threatening : Float64 #

[View source]
def hate : Float64 #

The score for the category 'hate'


[View source]
def hate_threatening : Float64 #

[View source]
def self_harm : Float64 #

[View source]
def self_harm_instructions : Float64 #

[View source]
def self_harm_intent : Float64 #

[View source]
def sexual : Float64 #

The score for the category 'sexual'.


[View source]
def sexual_minors : Float64 #

[View source]
def violence : Float64 #

The score for the category 'violence'.


[View source]
def violence_graphic : Float64 #

[View source]