The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

OpenAI::API::Response::Edit - encapsulate the response from the OpenAI Edit API.

SYNOPSIS

This module should not be used directly. It will be used by OpenAI::API::Request::Edit to parse and encapsulate the response.

DESCRIPTION

OpenAI::API::Response::Edit extends the OpenAI::API::Response superclass and is used to encapsulate the response from the OpenAI Edit API.

ATTRIBUTES

object

The type of the object, which is "edit" for this module.

created

The timestamp when the edit completion was created.

choices

An arrayref containing the edit completion choices.

usage

A hashref containing the tokens usage information.

STRING OVERLOAD

This module uses overload to provide string representation for the response object. When the object is used as a string, it will automatically return the content of the message in the first choice of the choices arrayref.

SEE ALSO

OpenAI::API::Request::Edit, OpenAI::API::Response