mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-05 01:59:27 +00:00
cost::calculate prices token meters over the typed Prices every row lowers into, with one line per meter and the borrowed rate named in fallback_from. generic_cost_per_token prices through Prices.price and as_main_cost, per-call custom pricing is an overlay that never writes the shared row, and a directly written bad price is unpriced with one log line Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
505 B
TOML
20 lines
505 B
TOML
[package]
|
|
name = "litellm-cost"
|
|
version = "0.1.0"
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
repository.workspace = true
|
|
|
|
[features]
|
|
serde = ["dep:serde"]
|
|
schema = ["serde", "dep:schemars"]
|
|
|
|
[dependencies]
|
|
jiff = { version = "0.2.37", default-features = false, features = ["std", "tzdb-bundle-always"] }
|
|
schemars = { workspace = true, optional = true }
|
|
serde = { workspace = true, optional = true }
|
|
thiserror.workspace = true
|
|
|
|
[dev-dependencies]
|
|
rstest.workspace = true
|
|
serde_json.workspace = true
|