Module: OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::Mode

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

Overview

Controls whether OpenAI automatically creates an implicit cache breakpoint. Defaults to implicit. With implicit, OpenAI creates one implicit breakpoint and writes up to the latest three explicit breakpoints in the request. With explicit, OpenAI does not create an implicit breakpoint and writes up to the latest four explicit breakpoints. If there are no explicit breakpoints, the request does not use prompt caching.

See Also:

  • OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions#mode

Constant Summary collapse

IMPLICIT =

Returns:

  • (:implicit)
:implicit
EXPLICIT =

Returns:

  • (:explicit)
:explicit

Class Method Summary collapse

Methods included from Internal::Type::Enum

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

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, coerce_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, type_info

Class Method Details

.values ⇒ ::Array[OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::mode]

Returns:

  • (::Array[OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::mode])


1400
# File 'sig/openai/models/beta/response_create_params.rbs', line 1400

def self?.values: -> ::Array[OpenAI::Models::Beta::ResponseCreateParams::PromptCacheOptions::mode]