Chat Response Chunk
The ChatResponseChunk contains all the data returned by the OpenAI Chat API. For most use cases, ChatResponseChunk.get (passing 0 to the index argument) is all you need.
This class is similar to ChatResponse, except with ChatResponseChunk you determine the number of generated tokens.
Since
1.2.0
See also
Functions
Link copied to clipboard
Shorthand for accessing the generated messages (shorthand for ChatResponseChunk.choices).
Link copied to clipboard
Returns the time-zoned instant that the OpenAI Chat API sent this response. By default, this method uses the system's timezone.