Files
log10py/docs/models/components/createchatcompletionresponse.md
Niklas Nielsen ebd24efca7 Initial commit
2024-05-24 19:20:08 -07:00

8.1 KiB
Raw Blame History

CreateChatCompletionResponse

Represents a chat completion response returned by model, based on the provided input.

Fields

Field Type Required Description
id str ✔️ A unique identifier for the chat completion.
choices List[components.Choices] ✔️ A list of chat completion choices. Can be more than one if n is greater than 1.
created int ✔️ The Unix timestamp (in seconds) of when the chat completion was created.
model str ✔️ The model used for the chat completion.
object components.Object ✔️ The object type, which is always chat.completion.
system_fingerprint Optional[str] This fingerprint represents the backend configuration that the model runs with.

Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.
usage Optional[components.CompletionUsage] Usage statistics for the completion request.