Skip to main content

load_pricing

Function load_pricing 

Source
pub fn load_pricing() -> (Table, String)
Expand description

Live + cached pricing resolution (native only — needs HTTP + filesystem). Mirrors the Python load_pricing: fresh 24h cache → live LiteLLM fetch (then cache) → stale cache → bundled fallback. CONTEXTBAR_PRICING_OFFLINE forces the offline (fallback) path.