litellm/litellm/rust_bridge
Claude bdc2142c7b
refactor(cost): delete the Python token breakdown, billed-rate and savings formulas
get_token_type_cost_breakdown, get_billed_token_rates and
calculate_prompt_caching_savings keep their signatures for SDK callers, the
savings writer and the tests, but each is now one Rust price() call on the row
it names, mapped back to the old return. Their formula helpers are deleted:
_cost_map_billed_rates, _custom_pricing_rates, _cache_token_counts,
_reasoning_token_count, BilledTokenRates.scaled, calculate_cache_writing_cost,
billed_cache_read_rate, call_context and the provider-specific geo and speed
multipliers, along with the NativePrices, NativeCallContext and NativeQuote
bindings only they used.

The tests of calculate_cache_writing_cost now check the same cache write
lifetimes through the stored breakdown, and the Fable 5.2 fast mode test checks
the doubled price through Anthropic's cost_per_token instead of the deleted
multiplier helper.
2026-11-18 21:08:09 +00:00
..
chat_completions feat: add OpenRouter-style -latest model aliases for first-party providers (#50315) 2026-11-06 18:22:38 +08:00
embeddings refactor(rust-bridge): return an unstarted Execution from native entrypoints and drive it in Python (#46299) 2026-10-14 17:50:44 -07:00
host refactor(cost): keep the lint gates flat for the Rust-priced Messages hand-off 2026-11-18 21:06:45 +00:00
messages feat(messages): serve bedrock invoke messages on rust only (#51330) 2026-11-15 16:58:31 -08:00
ocr refactor(rust-bridge): move the route host modules under host/routes (#46786) 2026-10-15 18:27:06 -07:00
responses refactor(rust_bridge): route every Rust-to-Python call through host modules (#50822) 2026-11-11 01:57:54 +00:00
transcription refactor(rust-bridge): unify native call inputs and Messages settings (#45126) 2026-10-07 15:05:43 -07:00
__init__.py refactor(rust-bridge): require the native extension (#48852) 2026-10-28 13:16:56 -07:00
_native.pyi refactor(cost): delete the Python token breakdown, billed-rate and savings formulas 2026-11-18 21:08:09 +00:00
AGENTS.md refactor(auth): plan the authentication path in Rust (#51605) 2026-11-16 19:36:57 +09:00
bindings.py refactor(rust-bridge): require the native extension (#48852) 2026-10-28 13:16:56 -07:00
catalog.py feat(messages): serve bedrock invoke messages on rust only (#51330) 2026-11-15 16:58:31 -08:00
clickhouse.py refactor(rust-bridge): require the native extension (#48852) 2026-10-28 13:16:56 -07:00
configuration.py refactor(proxy): let the gunicorn server take a private listener (#50871) 2026-11-11 19:40:00 +00:00
database.py feat(gateway): resolve Redis and the database in their own crates and hand them to routes as axum state (#52222) 2026-11-18 09:16:13 +09:00
detectors.py feat(messages): serve anthropic messages on rust only (#51119) 2026-11-12 00:07:20 +00:00
diagnostics.py refactor(rust-bridge): remove the LoggerRule concept from the catalog (#46711) 2026-10-15 17:49:51 +00:00
dispatch.py refactor(rust-bridge): detect Python-only features in the catalog instead of Rust declines (#46714) 2026-10-20 15:06:25 -07:00
execution.py feat(messages): serve anthropic messages on rust only (#51119) 2026-11-12 00:07:20 +00:00
failures.py chore(lint): remove the LIT002 mutable-construction rule (#43971) 2026-10-01 12:24:02 -07:00
fork_guard.py refactor(rust-bridge): require the native extension (#48852) 2026-10-28 13:16:56 -07:00
public_call.py refactor(rust_bridge): route every Rust-to-Python call through host modules (#50822) 2026-11-11 01:57:54 +00:00
response_metadata.py feat(messages): serve anthropic messages on rust only (#51119) 2026-11-12 00:07:20 +00:00
runtime.py feat(messages): serve anthropic messages on rust only (#51119) 2026-11-12 00:07:20 +00:00
token_counter.py feat(tokenizer): preserve Python defaults with opt-in Rust dispatch (#42174) 2026-09-22 04:41:11 +00:00
tokenizer.py refactor(sdk): separate core AWS and tokenizer dependencies (#44447) 2026-10-08 19:07:57 -07:00