Module: OpenAI::Models::Chat::CompletionCreateParams::PromptCacheRetention
- Extended by:
- Internal::Type::Enum
- Defined in:
- lib/openai/models/chat/completion_create_params.rb
Overview
The retention policy for the prompt cache. Set to ‘24h` to enable extended prompt caching, which keeps cached prefixes active for longer, up to a maximum of 24 hours. [Learn more](platform.openai.com/docs/guides/prompt-caching#prompt-cache-retention).
Constant Summary collapse
- IN_MEMORY =
:"in-memory"- PROMPT_CACHE_RETENTION_24H =
:"24h"
Method Summary
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, meta_info, new_coerce_state, type_info