OpenAI::API::Request::Model::List - models endpoint
use OpenAI::API::Request::Model::List; my $request = OpenAI::API::Request::Model::List->new(); my $res = $request->send(); my @models = $res->{data}->@*;
Lists the currently available models, and provides basic information about each one such as the owner and availability.
Sends the request and returns a data structured similar to the one documented in the API reference.
OpenAI API Reference: Models
To install OpenAI::API, copy and paste the appropriate command in to your terminal.
cpanm
cpanm OpenAI::API
CPAN shell
perl -MCPAN -e shell install OpenAI::API
For more information on module installation, please visit the detailed CPAN module installation guide.