API/Request/Completion.pm

filter: Statementstmt 100% 38 / 38 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod 100% 2 / 2 totaltotal 100% 48 / 48 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« API/Request/Image/Generation.pm ↑ Summary API/Request/Edit.pm »
1 package OpenAI::API::Request::Completion;
2  
3 18 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 18 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 18 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 18 ▶use strictures 2;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 18 ▶use namespace::clean;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 18 extends 'OpenAI::API::Request';
11  
12 18 ▶use Types::Standard qw(Any Bool Int Map Num Str);
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 18 has model => ( is => 'rw', isa => Str, required => 1, );
15 18 has prompt => ( is => 'rw', isa => Str, required => 1, );
16  
17 18 has suffix => ( is => 'rw', isa => Str, );
18 18 has max_tokens => ( is => 'rw', isa => Int, );
19 18 has temperature => ( is => 'rw', isa => Num, );
20 18 has top_p => ( is => 'rw', isa => Num, );
21 18 has n => ( is => 'rw', isa => Int, );
22 18 has stream => ( is => 'rw', isa => Bool, );
23 18 has logprobs => ( is => 'rw', isa => Int, );
24 18 has echo => ( is => 'rw', isa => Bool, );
25 18 has stop => ( is => 'rw', isa => Any, );
26 18 has presence_penalty => ( is => 'rw', isa => Num, );
27 18 has frequency_penalty => ( is => 'rw', isa => Num, );
28 18 has best_of => ( is => 'rw', isa => Int, );
29 18 has logit_bias => ( is => 'rw', isa => Map [ Int, Int ], );
30 18 has user => ( is => 'rw', isa => Str, );
31  
32 1 ▶sub endpoint { 'completions' }
Subroutine endpoint: called CC=1 SCAR=0.0
Pod documented
33 1 ▶sub method { 'POST' }
Subroutine method: called CC=1 SCAR=0.0
Pod documented
34  
35 18 1;
36  
37 __END__
« API/Request/Image/Generation.pm ↑ Summary API/Request/Edit.pm »