@rivus/agent-kit/cost/prices
litellmPrices, litellmPricesVersion: a LiteLLM price snapshot — anywhere, no imports
Variables
litellmPrices
const litellmPrices: PricingTable;The kit's snapshot of LiteLLM's model price list, as a table ready for createPricing.
litellmPricesVersion
const litellmPricesVersion: string;The snapshot's version: <date>+<commit>+<digest> — the date (UTC) and 40-digit commit of LiteLLM's
model_prices_and_context_window.json it was generated from, then 12 hex digits digesting the prices themselves
(the SHA-256 of their deterministic JSON, computed by scripts/update-pricing.ts); the date is that commit's, not
the day the snapshot was generated. The version changes whenever the table's content changes, even under the same
LiteLLM commit, so a host that records it next to the costs it computes with litellmPrices can tell when stored
data would be priced differently and recompute.