struct OpenAI::LogprobResult

Included Modules

Extended Modules

Defined in:

openai/api/completion.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(tokens : Array(String), token_logprobs : Array(Float64), top_logprobs : Hash(String, Float64), text_offset : Array(Int32)) #

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

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(tokens _tokens = @tokens, token_logprobs _token_logprobs = @token_logprobs, top_logprobs _top_logprobs = @top_logprobs, text_offset _text_offset = @text_offset) #

[View source]
def text_offset : Array(Int32) #

def token_logprobs : Array(Float64) #

def tokens : Array(String) #

def top_logprobs : Hash(String, Float64) #