Module: OpenAI::Models::CompletionCreateParams::Prompt

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

Overview

The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.

Note that <|endoftext|> is the document separator that the model sees during training, so if a prompt is not specified the model will generate as if from the beginning of a new document.

Constant Summary collapse

StringArray =
OpenAI::Internal::Type::ArrayOf[String]
IntegerArray =
OpenAI::Internal::Type::ArrayOf[Integer]
ArrayOfToken2DArray =
OpenAI::Internal::Type::ArrayOf[OpenAI::Internal::Type::ArrayOf[Integer]]

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>, Array<Integer>, Array<Array<Integer>>)

Returns:

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


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