cost/

directory
v0.0.0-...-53bd38a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: Apache-2.0

Directories

Path Synopsis
Package event is the canonical wire shape of the per-request cost that litellm-budget-track publishes onto a session event.
Package event is the canonical wire shape of the per-request cost that litellm-budget-track publishes onto a session event.
Package ledger persists per-minute cost and token totals to disk so "what did today cost" survives a restart.
Package ledger persists per-minute cost and token totals to disk so "what did today cost" survives a restart.
Package pricing owns model rates and the arithmetic that turns tokens into dollars.
Package pricing owns model rates and the arithmetic that turns tokens into dollars.
internal/gen command
Command gen regenerates the bundled price table from LiteLLM's public price map.
Command gen regenerates the bundled price table from LiteLLM's public price map.
internal/pricegen
Package pricegen turns LiteLLM's public model_prices_and_context_window.json into pricing.Entry rows and renders them as Go source.
Package pricegen turns LiteLLM's public model_prices_and_context_window.json into pricing.Entry rows and renders them as Go source.
pricelist
Package pricelist keeps vendor list prices current by downloading LiteLLM's public price map while the proxy runs, rather than only when the binary is built.
Package pricelist keeps vendor list prices current by downloading LiteLLM's public price map while the proxy runs, rather than only when the binary is built.
Package settle turns one response's facts into one settled cost.
Package settle turns one response's facts into one settled cost.
Package usage aggregates session events into fixed-width time buckets so a client can chart volume, errors, latency and cost over wall-clock time.
Package usage aggregates session events into fixed-width time buckets so a client can chart volume, errors, latency and cost over wall-clock time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL