Skip to main content

rewrite_cost_usd

Function rewrite_cost_usd 

Source
pub fn rewrite_cost_usd(model: &str, ttl: CacheTtl, prefix_tokens: u64) -> f64
Expand description

Cost of re-writing prefix_tokens at the TTL’s write price: what the next turn pays if the cache lapses — the ski-rental “buy” price.