class

OpenAI::CreateModerationResponse

Inherits JSON::Serializable < Reference < Object

Represents if a given text input is potentially harmful.

Constructors

new(id : String = "", model : String = "", results : Array(CreateModerationResponseResultsItem) = [] of CreateModerationResponseResultsItem)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

id

The unique identifier for the moderation request.

Source
id=(id : String)

The unique identifier for the moderation request.

Source
model

The model used to generate the moderation results.

Source
model=(model : String)

The model used to generate the moderation results.

Source
results

A list of moderation objects.

Source
results=(results : Array(CreateModerationResponseResultsItem))

A list of moderation objects.

Source