class

OpenAI::LogProbProperties

Inherits JSON::Serializable < Reference < Object

A log probability object.

Constructors

new(token : String = "", logprob : Float64 = 0.0, bytes : Array(Int64) = [] of Int64)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

bytes

The bytes that were used to generate the log probability.

Source
bytes=(bytes : Array(Int64))

The bytes that were used to generate the log probability.

Source
logprob

The log probability of the token.

Source
logprob=(logprob : Float64)

The log probability of the token.

Source
token

The token that was used to generate the log probability.

Source
token=(token : String)

The token that was used to generate the log probability.

Source