pub enum DecisionRequestPromptCacheOptionsMode {
Implicit,
Explicit,
}Available on crate feature
decision-types only.Expand description
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.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DecisionRequestPromptCacheOptionsMode
impl<'de> Deserialize<'de> for DecisionRequestPromptCacheOptionsMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DecisionRequestPromptCacheOptionsMode
Auto Trait Implementations§
impl Freeze for DecisionRequestPromptCacheOptionsMode
impl RefUnwindSafe for DecisionRequestPromptCacheOptionsMode
impl Send for DecisionRequestPromptCacheOptionsMode
impl Sync for DecisionRequestPromptCacheOptionsMode
impl Unpin for DecisionRequestPromptCacheOptionsMode
impl UnsafeUnpin for DecisionRequestPromptCacheOptionsMode
impl UnwindSafe for DecisionRequestPromptCacheOptionsMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more