class

OpenAI::CreateChatCompletionStreamResponseChoicesItemLogprobs

Inherits JSON::Serializable < Reference < Object

Log probability information for the choice.

Constructors

new(content : Array(ChatCompletionTokenLogprob) | Nil = nil, refusal : Array(ChatCompletionTokenLogprob) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

A list of message content tokens with log probability information.

Source
content=(content : Array(ChatCompletionTokenLogprob) | Nil)

A list of message content tokens with log probability information.

Source
refusal

A list of message refusal tokens with log probability information.

Source
refusal=(refusal : Array(ChatCompletionTokenLogprob) | Nil)

A list of message refusal tokens with log probability information.

Source