NAME
OpenAI::API::Request::File::Retrieve - retrieve file details
SYNOPSIS
use OpenAI::API::Request::File::Retrieve;
# retrieve an existing file id
my $file_id = OpenAI::API::Request::File::List->new->send->{data}[0]->{id};
my $request = OpenAI::API::Request::File::Retrieve->new(
file_id => $file_id,
);
my $res = $request->send();
my $filename = $res->{filename};
DESCRIPTION
Returns information about a specific file.
METHODS
new()
- file_id
send()
Sends the request and returns a data structured similar to the one documented in the API reference.
SEE ALSO
OpenAI API Reference: Files