struct OpenAI::ChatCompletionStreamResponse
- OpenAI::ChatCompletionStreamResponse
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/chat.crConstructors
Instance Method Summary
-
#choices : Array(ChatCompletionStreamChoice)
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.
- #prompt_annotations : Array(PromptAnnotation) | Nil
Constructor Detail
Instance Method Detail
def choices : Array(ChatCompletionStreamChoice)
#
A list of chat completion choices. Can be more than one if n is greater than 1.