struct AI::OpenAI::OpenAIChatResponseChoice

Overview

Choice in response.

Included Modules

Defined in:

ai/openai/chat/openai_chat_api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(message : OpenAIChatResponseMessage, index : Int32, finish_reason : String | Nil = nil, logprobs : OpenAIChatLogprobs | Nil = nil) #

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

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

[View source]

Instance Method Detail

def finish_reason : String | Nil #

[View source]
def index : Int32 #

[View source]
def logprobs : OpenAIChatLogprobs | Nil #

[View source]

[View source]