OpenAI::API::Request::Model::Retrieve - retrieve model details
use OpenAI::API::Request::Model::Retrieve; my $request = OpenAI::API::Request::Model::Retrieve->new( model => 'text-davinci-003', ); my $res = $request->send(); my $id = $res->{id};
Retrieves a model instance, providing basic information about the model such as the owner and permissioning.
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.