mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-30 01:08:33 +00:00
* feat(model-catalog): read output_cost_per_video in the rust registry check Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> * test(model-catalog): keep FLAT_KEY_PATTERN and the parser in agreement on output_cost_per_video Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.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