struct AI::OpenAI::OpenAIChatChunkChoice

Overview

Choice in streaming chunk.

Included Modules

Defined in:

ai/openai/chat/openai_chat_api.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(index : Int32, delta : OpenAIChatChunkDelta | Nil = nil, finish_reason : String | Nil = nil, logprobs : OpenAIChatLogprobs | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[View source]

Instance Method Detail

def delta : OpenAIChatChunkDelta | Nil #

[View source]
def finish_reason : String | Nil #

[View source]
def index : Int32 #

[View source]
def logprobs : OpenAIChatLogprobs | Nil #

[View source]