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

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

use WWW::MistralAI;
use Test;

my $method = 'tiny';

plan *;

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

## 2
ok mistralai-completion('Generate Raku code for a loop over a list', model => 'mistral-small', :$method);

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

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

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

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

done-testing;


