pub enum CacheAccounting {
Subset,
Additive,
}Expand description
How a provider reports cache tokens relative to its input token count.
Variants§
Subset
Cache tokens are a subset of the reported input tokens
(OpenAI, Azure, OpenRouter, Groq, xAI, DeepSeek, …).
Additive
Cache tokens are reported in addition to the input tokens
(Anthropic Messages and AWS Bedrock Converse).
Trait Implementations§
Source§impl Clone for CacheAccounting
impl Clone for CacheAccounting
impl Copy for CacheAccounting
Source§impl Debug for CacheAccounting
impl Debug for CacheAccounting
impl Eq for CacheAccounting
Source§impl PartialEq for CacheAccounting
impl PartialEq for CacheAccounting
impl StructuralPartialEq for CacheAccounting
Auto Trait Implementations§
impl Freeze for CacheAccounting
impl RefUnwindSafe for CacheAccounting
impl Send for CacheAccounting
impl Sync for CacheAccounting
impl Unpin for CacheAccounting
impl UnsafeUnpin for CacheAccounting
impl UnwindSafe for CacheAccounting
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