GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenAI::API::Request::Moderation(3) User Contributed Perl Documentation OpenAI::API::Request::Moderation(3)

OpenAI::API::Request::Moderation - Request class for OpenAI API content moderation

    use OpenAI::API::Request::Moderation;
    my $request = OpenAI::API::Request::Moderation->new(
        input => "I like turtles",
    );
    my $res = $request->send();
    if ( $res->{results}[0]{flagged} ) {
        die "Input violates our Content Policy";
    }

This module provides a request class for interacting with the OpenAI API's content moderation endpoint. It inherits from OpenAI::API::Request.

The content to be moderated. Required.

The model to use for content moderation. Optional.

This method returns the API endpoint for content moderation.

This method returns the HTTP method for content moderation.

This module inherits the following methods from OpenAI::API::Request:

OpenAI::API::Request, OpenAI::API::Config

2023-04-09 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.