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. |
Click to show internal directories.
Click to hide internal directories.