Module: OpenAI::Models::Responses::Response::Truncation

Extended by:
Internal::Type::Enum
Defined in:
lib/openai/models/responses/response.rb

Overview

The truncation strategy to use for the model response.

  • ‘auto`: If the context of this response and previous ones exceeds the model’s context window size, the model will truncate the response to fit the context window by dropping input items in the middle of the conversation.

  • ‘disabled` (default): If a model response will exceed the context window size for a model, the request will fail with a 400 error.

See Also:

Constant Summary collapse

AUTO =
:auto
DISABLED =
:disabled

Class Method Summary collapse

Methods included from Internal::Type::Enum

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

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

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/openai/models/responses/response.rb', line 387