mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-03 07:23:33 +00:00
* docs(model-catalog): explain meter, band, channel and When Add a Concepts section to the model-catalog AGENTS.md with worked key breakdowns, doc comments on the undocumented litellm-cost price types, and a cost AGENTS.md that points to the concepts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(model-catalog): write concepts as nested lists Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * docs(model-catalog): spell out band rules and channel fallbacks Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| AGENTS.md | ||
| Cargo.toml | ||
| README.md | ||
litellm-cost
This crate holds the price data model that litellm-model-catalog lowers each catalog entry into, plus the usage, call context and priced outcome types that calculate will compute over. There is no calculate until the token pricing PR lands. UnitPrice is USD per unit and Usd is an amount, and only the operations that make sense between them exist, so a price is never added to an amount. Prices::band and Prices::rate resolve a token rate the way Python's _get_token_base_cost does