Module: OpenAI::Models::Chat::ChatCompletionMessageParam

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/chat/chat_completion_message_param.rb,
sig/openai/models/chat/chat_completion_message_param.rbs

Overview

Developer-provided instructions that the model should follow, regardless of messages sent by the user. With o1 models and newer, developer messages replace the previous system messages.

Class Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type, variant_for_dump

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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Class Method Details

.variants ⇒ ::Array[OpenAI::Models::Chat::chat_completion_message_param]

Returns:

  • (::Array[OpenAI::Models::Chat::chat_completion_message_param])


17
# File 'sig/openai/models/chat/chat_completion_message_param.rbs', line 17

def self?.variants: -> ::Array[OpenAI::Models::Chat::chat_completion_message_param]