mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
Model Catalog now feeds the litellm-cost query engine. Snapshot::pricing_rows fetches the rows one query reads into PricingRows, the core's RowSource, each candidate keyed by the model name main priced it with, and a lowered row carries the RowFacts the core reads (mode, max tokens, how float() reads provider_specific_entry, the raw keys the auth checks read). The snapshot also holds the discount and margin config and the host's fallback_generalizations rules, all keyed on the generation. NativeModelCostMap gains price, bound, rates and adjust. Python hands each a document of raw facts and the bridge reads them the way main's Python did before it builds the core's typed query. A call the core does not price answers None so Python keeps pricing it. NativeTokenUsage now takes the core's TokenUsage document and bills it through TokenUsage::billed, so the counts to meters conversion exists once. |
||
|---|---|---|
| .. | ||
| host | ||
| messages | ||
| ocr | ||
| trace | ||
| __init__.py | ||
| AGENTS.md | ||
| native_route_wheel_test.py | ||
| stubtest.ini | ||
| test_bindings.py | ||
| test_catalog.py | ||
| test_clickhouse.py | ||
| test_configuration.py | ||
| test_detectors.py | ||
| test_execution.py | ||
| test_failures.py | ||
| test_fork_guard.py | ||
| test_logger.py | ||
| test_public_call.py | ||
| test_runtime.py | ||
| test_token_counter.py | ||
| test_tokenizer.py | ||
| test_verify_linux_native_wheel.py | ||