Files
log10go/docs/models/components/createchatcompletionresponse.md
2024-05-24 18:29:28 -07:00

8.1 KiB
Raw Permalink Blame History

CreateChatCompletionResponse

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

Fields

Field Type Required Description
ID string ✔️ A unique identifier for the chat completion.
Choices []components.Choices ✔️ A list of chat completion choices. Can be more than one if n is greater than 1.
Created int64 ✔️ The Unix timestamp (in seconds) of when the chat completion was created.
Model string ✔️ The model used for the chat completion.
SystemFingerprint *string 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.
Object components.Object ✔️ The object type, which is always chat.completion.
Usage *components.CompletionUsage Usage statistics for the completion request.