Module: OpenAI::Models::CompletionCreateParams::Model

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

Overview

ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.

collapse

GPT_3_5_TURBO_INSTRUCT =
:"gpt-3.5-turbo-instruct"
DAVINCI_002 =
:"davinci-002"
BABBAGE_002 =
:"babbage-002"

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

Class Method Details

.variantsArray(String, Symbol)

Returns:

  • (Array(String, Symbol))


244
245
246
# File 'lib/openai/models/completion_create_params.rb', line 244

define_sorbet_constant!(:Variants) do
  T.type_alias { T.any(String, OpenAI::CompletionCreateParams::Model::TaggedSymbol) }
end