MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / cache_path

Function cache_path

src/accounting/pricing.rs:55–57  ·  view source on GitHub ↗

Path to the cached pricing file: `pricing.json` in the user data dir.

()

Source from the content-addressed store, hash-verified

53
54/// Path to the cached pricing file: `pricing.json` in the user data dir.
55fn cache_path() -> Option<PathBuf> {
56 crate::config::user_data_dir().map(|dir| dir.join("pricing.json"))
57}
58
59/// The embedded pricing table -- compiled into the binary as a fallback.
60fn embedded_table() -> HashMap<String, ModelPricing> {

Callers 2

load_cachedFunction · 0.70
refresh_pricingFunction · 0.70

Calls 1

user_data_dirFunction · 0.85

Tested by

no test coverage detected