Module: OpenAI::Models::Responses::ResponseCreateParams::Truncation Deprecated

Extended by:
Internal::Type::Enum
Defined in:
lib/openai/models/responses/response_create_params.rb,
sig/openai/models/responses/response_create_params.rbs

Overview

Deprecated.

The truncation strategy to use for the model response.

  • auto: If the input to this Response exceeds the model's context window size, the model will truncate the response to fit the context window by dropping items from the beginning of the conversation. On some models, trimming can begin earlier because the API subtracts the model's maximum output allowance from its input limit, even if you set a lower max_output_tokens.
  • disabled (default): If the input size will exceed the context window size for a model, the request will fail with a 400 error.

Constant Summary collapse

AUTO =

Returns:

  • (:auto)
:auto
DISABLED =

Returns:

  • (:disabled)
:disabled

Class Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type

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

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/responses/response_create_params.rb', line 1237