| blib/lib/AI/Chat.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 8 | 26 | 30.7 |
| line | true | false | branch |
|---|---|---|---|
| 22 | 1 | 2 | unless $attr{'api'} |
| 23 | 1 | 2 | unless $attr{'api'} eq "OpenAI" |
| 24 | 1 | 2 | unless $attr{'key'} |
| 26 | 3 | 0 | unless $attr{'model'} |
| 56 | 3 | 0 | unless defined $self->{'key'} |
| 68 | 0 | 0 | unless ($prompt) |
| 73 | 0 | 0 | unless $temperature |
| 79 | 0 | 0 | if $self->{'role'} |
| 92 | 0 | 0 | if (ref $chat ne "ARRAY") |
| 97 | 0 | 0 | unless $temperature |
| 110 | 0 | 0 | if ($response->{'content'} =~ /invalid_api_key/) |
| 114 | 0 | 0 | if ($self->{'debug'} and not $response->{'success'}) |
| 115 | 0 | 0 | if $self->{'debug'} eq "verbose" |