Class: OpenAI::Models::Realtime::RealtimeTruncationRetentionRatio::TokenLimits
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Realtime::RealtimeTruncationRetentionRatio::TokenLimits
- Defined in:
- lib/openai/models/realtime/realtime_truncation_retention_ratio.rb
Overview
Instance Attribute Summary collapse
-
#post_instructions ⇒ Integer?
Maximum tokens allowed in the conversation after instructions (which including tool definitions).
Instance Method Summary collapse
-
#initialize(post_instructions: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see TokenLimits for more details.
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(post_instructions: nil) ⇒ Object
Some parameter documentations has been truncated, see OpenAI::Models::Realtime::RealtimeTruncationRetentionRatio::TokenLimits for more details.
Optional custom token limits for this truncation strategy. If not provided, the model’s default token limits will be used.
|
|
# File 'lib/openai/models/realtime/realtime_truncation_retention_ratio.rb', line 55
|
Instance Attribute Details
#post_instructions ⇒ Integer?
Maximum tokens allowed in the conversation after instructions (which including tool definitions). For example, setting this to 5,000 would mean that truncation would occur when the conversation exceeds 5,000 tokens after instructions. This cannot be higher than the model’s context window size minus the maximum output tokens.
53 |
# File 'lib/openai/models/realtime/realtime_truncation_retention_ratio.rb', line 53 optional :post_instructions, Integer |