NAME

OpenAI::API::Request::Moderation - moderations endpoint

SYNOPSIS

use OpenAI::API::Request::Moderation;

my $request = OpenAI::API::Request::Moderation->new(
    input => "I like turtles",
);

my $res = $request->send();

DESCRIPTION

Given a input text, outputs if the model classifies it as violating OpenAI's content policy.

METHODS

new()

  • input

  • model [optional]

SEE ALSO

OpenAI API Documentation: Moderations