GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenAI::API::Response::Chat(3) User Contributed Perl Documentation OpenAI::API::Response::Chat(3)

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

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

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

The unique identifier of the chat completion.

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

The timestamp when the chat completion was created.

An arrayref containing the chat completion choices.

A hashref containing the tokens usage information.

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.

OpenAI::API::Request::Chat, OpenAI::API::Response

2023-04-02 perl v5.40.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.