struct OpenAI::ChatCompletionStreamResponse

Included Modules

Extended Modules

Defined in:

openai/api/chat.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def choices : Array(ChatCompletionStreamChoice) #

A list of chat completion choices. Can be more than one if n is greater than 1.


[View source]
def created : Time #

[View source]
def id : String #

A unique identifier for the chat completion.


[View source]
def model : String #

The model used for the chat completion.


[View source]
def object : String #

The object type, which is always chat.completion.


[View source]
def prompt_annotations : Array(PromptAnnotation) | Nil #

[View source]