line |
true |
false |
branch |
49
|
0 |
0 |
unless (defined $openai)
|
54
|
0 |
0 |
if (not exists $self->{'python_source_code'} && defined $self->{'python_source_code'} or $self->{'python_source_code'} eq "")
|
110
|
0 |
0 |
if (defined $Python::Unknown::EVAL_ERROR and $Python::Unknown::EVAL_ERROR ne "")
|
119
|
0 |
0 |
if ($Python::Unknown::EVAL_ERROR =~ /400 Bad Request/) { }
|
|
0 |
0 |
elsif ($Python::Unknown::EVAL_ERROR =~ /429 Too Many Requests/) { }
|
|
0 |
0 |
elsif ($Python::Unknown::EVAL_ERROR =~ /500 read timeout/) { }
|
134
|
0 |
0 |
if ($retries >= $self->{'retries_max'})
|
170
|
0 |
0 |
if (not defined $response) { }
|
|
0 |
0 |
elsif (not exists $response->{'choices'} && defined $response->{'choices'} && defined $response->{'choices'}[0]) { }
|
179
|
0 |
0 |
if (not exists $response->{'choices'}[0]{'finish_reason'} && defined $response->{'choices'}[0]{'finish_reason'}) { }
|
|
0 |
0 |
elsif ($response->{'choices'}[0]{'finish_reason'} ne 'stop') { }
|
186
|
0 |
0 |
if (not exists $response->{'choices'}[0]{'message'} && defined $response->{'choices'}[0]{'message'}) { }
|
|
0 |
0 |
elsif (not exists $response->{'choices'}[0]{'message'}{'content'} && defined $response->{'choices'}[0]{'message'}{'content'}) { }
|
202
|
0 |
0 |
if ($perl_source_code_line =~ /^(\s*)$stop_sequence/)
|
213
|
0 |
0 |
if ($perl_source_code_line =~ /^(\s*)$error_sequence/)
|
237
|
0 |
0 |
if ($self->{'perl_source_code'} eq "")
|
256
|
0 |
0 |
unless (defined $openai)
|
261
|
0 |
0 |
if (not exists $self->{'python_source_code'} && defined $self->{'python_source_code'} or $self->{'python_source_code'} eq "")
|
268
|
0 |
0 |
unless (defined $messages and defined $messages->[0])
|