Module: OpenAI::Models::Graders::ScoreModelGrader::Input::Content

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

Overview

Inputs to the model - can contain template strings.

See Also:

Defined Under Namespace

Classes: InputImage, OutputText

Constant Summary collapse

AnArrayOfInputTextInputImageAndInputAudioArray =
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, meta_info, new_coerce_state, type_info

Class Method Details

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



# File 'lib/openai/models/graders/score_model_grader.rb', line 181

Instance Method Details

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

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

An image input to the model.

Parameters:

  • image_url (String)

    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/score_model_grader.rb', line 135