Represents a chat completion response returned by model, based on the provided input.
Constructors
new(id :
String = "", choices :
Array(
CreateChatCompletionResponseChoicesItem) = [] of
CreateChatCompletionResponseChoicesItem, created :
Int64 = 0, model :
String = "", service_tier :
ServiceTier |
Nil = nil, system_fingerprint :
String |
Nil = nil, object :
CreateChatCompletionResponseObject =
CreateChatCompletionResponseObject::ChatCompletion, usage :
CompletionUsage |
Nil = nil)
SourceInstance methods
choices
A list of chat completion choices. Can be more than one if n is greater than 1.
Sourcechoices=(choices :
Array(
CreateChatCompletionResponseChoicesItem))
A list of chat completion choices. Can be more than one if n is greater than 1.
Sourcecreated
The Unix timestamp (in seconds) of when the chat completion was created.
Sourcecreated=(created :
Int64)
The Unix timestamp (in seconds) of when the chat completion was created.
Sourceid
A unique identifier for the chat completion.
SourceA unique identifier for the chat completion.
Sourcemodel
The model used for the chat completion.
SourceThe model used for the chat completion.
Sourceobject
The object type, which is always chat.completion.
Sourceobject=(object : CreateChatCompletionResponseObject)
The object type, which is always chat.completion.
Sourceservice_tier=(service_tier : ServiceTier | Nil)
Sourcesystem_fingerprint
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.
Sourcesystem_fingerprint=(system_fingerprint :
String |
Nil)
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.
Sourceusage=(usage : CompletionUsage | Nil)
Source