struct

OpenAI::ModerationResult

Inherits JSON::Serializable / Struct / Value / Object

Constructors

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

Instance methods

categories

A list of the categories, and whether they are flagged or not.

Source
category_scores

A list of the categories along with their scores as predicted by model.

Source
flagged

Whether the content violates OpenAI's usage policies.

Source