struct

OpenAI::ModerationResponse

Inherits JSON::Serializable / Struct / Value / Object

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

Constructors

new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

id

The unique identifier for the moderation request.

Source
model

The model used to generate the moderation results.

Source
results

A list of moderation objects.

Source