### ----------------------------------------------------
### -- WWW::LLaMA
### -- Licenses: Artistic-2.0
### -- Authors: Anton Antonov
### -- File: xt/02-LLaMA-completions.t
### ----------------------------------------------------
use v6.d;

use lib '.';
use lib './lib';

use WWW::LLaMA;
use Test;

my $method = 'tiny';

plan *;

## 1
ok llama-completion('Generate Raku code for a loop over a list', model => Whatever, :$method);

## 2
ok llama-completion('Generate Raku code for a loop over a list', model => 'gpt-3.5-turbo', :$method);

## 3
ok llama-completion('Generate Raku code for a loop over a list', model => Whatever, :$method);

## 4
ok llama-completion('Generate Raku code for a loop over a list', model => Whatever, :$method);

## 5
dies-ok {
    llama-completion('Generate Raku code for a loop over a list', model => 'mistral-blah-blah', :$method)
};

## 6
ok llama-completion('Generate Raku code for a loop over a list', model => 'llama', random-seed => 12, :$method);

done-testing;


