Class: OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint
- Defined in:
- lib/openai/models/chat/chat_completion_content_part_input_audio.rb,
sig/openai/models/chat/chat_completion_content_part_input_audio.rbs
Overview
Defined Under Namespace
Modules: Ttl
Instance Attribute Summary collapse
-
#mode ⇒ :explicit
The breakpoint mode.
-
#ttl ⇒ OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::ttl?
The minimum lifetime of this cache breakpoint.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(ttl: nil, mode: :explicit) ⇒ PromptCacheBreakpoint
constructor
A new instance of PromptCacheBreakpoint.
- #to_hash ⇒ { ?mode: :explicit, ?ttl: OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::ttl }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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(ttl: nil, mode: :explicit) ⇒ PromptCacheBreakpoint
Returns a new instance of PromptCacheBreakpoint.
|
|
# File 'lib/openai/models/chat/chat_completion_content_part_input_audio.rb', line 95
|
Instance Attribute Details
#mode ⇒ :explicit
The breakpoint mode. Always explicit.
87 |
# File 'lib/openai/models/chat/chat_completion_content_part_input_audio.rb', line 87 required :mode, const: :explicit |
#ttl ⇒ OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::ttl?
The minimum lifetime of this cache breakpoint. Defaults to the request TTL.
93 |
# File 'lib/openai/models/chat/chat_completion_content_part_input_audio.rb', line 93 optional :ttl, enum: -> { OpenAI::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::Ttl } |
Instance Method Details
#to_hash ⇒ { ?mode: :explicit, ?ttl: OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::ttl }
115 116 117 118 |
# File 'sig/openai/models/chat/chat_completion_content_part_input_audio.rbs', line 115
def to_hash: -> {
?mode: :explicit,
?ttl: OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::PromptCacheBreakpoint::ttl
}
|