in reply to Re^3: Artificial Intelligence with Perl in 2023
in thread Artificial Intelligence with Perl in 2023
It's probably because I haven't properly set up my openai account. I got the api key but I probably need to give it my credit card or something.
The following
prints:my $chat = AI::Chat->new(%h); $chat->success() or die sprintf "error 1: %s\n", $chat->error(); print "$chat\n"; my $reply = $chat->prompt($prompt, $TEMP); $chat->success() or die sprintf "error 2: %s\n", $chat->error(); defined $reply or die sprintf "error 3: %s\n", $chat->error();
AI::Chat=HASH(0xa0042da30) error 3:
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Artificial Intelligence with Perl in 2023
by Bod (Parson) on Mar 03, 2024 at 21:16 UTC | |
by Danny (Chaplain) on Mar 03, 2024 at 22:34 UTC | |
by Bod (Parson) on Mar 03, 2024 at 22:44 UTC | |
by Bod (Parson) on Jun 01, 2024 at 16:00 UTC | |
by Bod (Parson) on Aug 18, 2024 at 18:46 UTC | |
Re^5: Artificial Intelligence with Perl in 2023
by Bod (Parson) on Mar 03, 2024 at 20:45 UTC |