Module: OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::Ttl

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

Overview

The minimum lifetime applied to every implicit and explicit cache breakpoint written by the request. Defaults to 30m, which is currently the only supported value. The backend may retain cache entries for longer.

See Also:

  • OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions#ttl

Constant Summary collapse

TTL_30M =

Returns:

  • (:"30m")
:"30m"

Instance Method Summary collapse

Methods included from Internal::Type::Enum

==, ===, coerce, dump, hash, inspect, to_sorbet_type, values, 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, meta_info, new_coerce_state, type_info

Instance Method Details

#self?.values::Array[OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::ttl]

Returns:

  • (::Array[OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::ttl])


457
# File 'sig/openai/models/chat/completion_create_params.rbs', line 457

def self?.values: -> ::Array[OpenAI::Models::Chat::CompletionCreateParams::PromptCacheOptions::ttl]