struct AI::OpenAI::Responses::LogprobsValue

Overview

Logprobs value can be a boolean or a number (1-20)

Included Modules

Defined in:

ai/openai/responses/openai_responses_options.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(value : Bool | Int32) #

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

[View source]

Instance Method Detail

def ==(other : LogprobsValue) : Bool #

[View source]
def to_json(json : JSON::Builder) : Nil #

[View source]
def value : Bool | Int32 #

[View source]