struct OpenAI::ChatCompletionResponse
- OpenAI::ChatCompletionResponse
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/chat.crConstructors
Instance Method Summary
-
#choices : Array(ChatCompletionChoice)
A list of chat completion choices.
- #created : Time
-
#id : String
A unique identifier for the chat completion.
-
#model : String
The model used for the chat completion.
-
#object : String
The object type, which is always chat.completion.
-
#system_fingerprint : String | Nil
This fingerprint represents the backend configuration that the model runs with.
-
#usage : Usage
Usage statistics for the completion request.
Constructor Detail
Instance Method Detail
def choices : Array(ChatCompletionChoice)
#
A list of chat completion choices. Can be more than one if n is greater than 1.
def 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.