| 1 | package OpenAI::API::Request::Moderation; | ||
| 2 | |||
| 3 | 16 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 16 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 16 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 16 | ▶ | use strictures 2; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | 16 | ▶ | use namespace::clean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 16 | extends 'OpenAI::API::Request'; | |
| 11 | |||
| 12 | 16 | ▶ | use Types::Standard qw(Bool Str Num Int Map); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | |||
| 14 | 16 | has input => ( is => 'rw', isa => Str, required => 1, ); | |
| 15 | |||
| 16 | 16 | has model => ( is => 'rw', isa => Str, ); | |
| 17 | |||
| 18 | 1 | ▶ | sub endpoint { 'moderations' } |
|
Subroutine
endpoint: called CC=1 SCAR=0.0
Pod
documented
| |||
| 19 | 1 | ▶ | sub method { 'POST' } |
|
Subroutine
method: called CC=1 SCAR=0.0
Pod
documented
| |||
| 20 | |||
| 21 | 16 | 1; | |
| 22 | |||
| 23 | __END__ | ||