struct OpenAI::ModerationResponse

Overview

Represents policy compliance report by OpenAI's content moderation model against a given input.

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 id : String #

The unique identifier for the moderation request.


[View source]
def model : ModerationModel #

[View source]
def results : Array(ModerationResult) #

A list of moderation objects.


[View source]