Object Fields
A unique identifier for the chat completion.
A list of chat completion choices. Can be more than one if
n is greater than 1.Each choice object contains:index(integer): The index of the choice in the listmessage(object): The message generated by the modelrole(string): The role of the message author (assistant)content(string): The content of the message
finish_reason(string): The reason the model stopped generating (stop,length,content_filter,tool_calls)
The Unix timestamp (in seconds) of when the chat completion was created.
The model used for the chat completion.
This fingerprint represents the backend configuration that the model runs with.
The object type, which is always
chat.completion.Usage statistics for the completion request.
completion_tokens(integer): Number of tokens in the generated completionprompt_tokens(integer): Number of tokens in the prompttotal_tokens(integer): Total number of tokens used in the request (prompt + completion)
