struct OpenAI::Logprobs

Included Modules

Defined in:

openai/logprobs.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(tokens : Array(String), token_logprobs : Array(Float64), top_logprobs : Array(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 : Array(Hash(String, Float64)) #