Module: OpenAI::Models::Chat::CompletionCreateParams::Stop

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/chat/completion_create_params.rb

Overview

Not supported with latest reasoning models ‘o3` and `o4-mini`.

Up to 4 sequences where the API will stop generating further tokens. The returned text will not contain the stop sequence.

Constant Summary collapse

StringArray =
OpenAI::Internal::Type::ArrayOf[String]

Class 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, type_info

Class Method Details

.variantsArray(String, Array<String>)

Returns:

  • (Array(String, Array<String>))


# File 'lib/openai/models/chat/completion_create_params.rb', line 588