embedding is documented
Some checks failed
ci/woodpecker/push/author-tests Pipeline failed

This commit is contained in:
Ryan Voots 2023-11-23 14:45:16 -05:00
parent 122c4fd5c4
commit 1304eb119f

View file

@ -10,7 +10,21 @@ A result from a an embedding request, L<OpenAIAsync::Types::Request::Completion>
=head1 SYNOPSIS
... todo
use IO::Async::Loop;
use OpenAIAsync::Client;
my $loop = IO::Async::Loop->new();
my $client = OpenAIAsync::Client->new();
$loop->add($client);
my $output = $client->embedding({
input => "My hovercraft is full of eels",
model => "text-embedding-ada-002",
encoding_format => "float"
})->get();
print Dumper($output->data->embedding);
=head1 Fields