Module: OpenAI::Models::Graders::LabelModelGrader::Input::Content

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/graders/label_model_grader.rb

Overview

Inputs to the model - can contain template strings.

See Also:

Defined Under Namespace

Classes: InputImage, OutputText

Constant Summary collapse

AnArrayOfInputTextAndInputImageArray =
OpenAI::Internal::Type::ArrayOf[OpenAI::Internal::Type::Unknown]

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, new_coerce_state, type_info

Class Method Details

.variantsArray(String, OpenAI::Models::Responses::ResponseInputText, OpenAI::Models::Graders::LabelModelGrader::Input::Content::OutputText, OpenAI::Models::Graders::LabelModelGrader::Input::Content::InputImage, Array<Object>)



# File 'lib/openai/models/graders/label_model_grader.rb', line 174

Instance Method Details

#initialize(image_url: , detail: nil, type: :input_image) ⇒ void

Some parameter documentations has been truncated, see InputImage for more details.

An image input to the model.

Parameters:

  • image_url (String) (defaults to: )

    The URL of the image input.

  • detail (String) (defaults to: nil)

    The detail level of the image to be sent to the model. One of high, low, or

  • type (Symbol, :input_image) (defaults to: :input_image)

    The type of the image input. Always input_image.



# File 'lib/openai/models/graders/label_model_grader.rb', line 128