litellm/litellm-rust/crates/inference/src
narmstrong-berry 18400e4fe4
fix(messages): match python stream cache gate, logging and interceptor order on rust
Store a streamed Messages response in the cache only when Python would: a
message_stop event line, no provider error frame and at least one frame with
output. Leave dict results untouched by mark_rust_response so hidden params
never reach result dicts, logging objects or hook digests. Ask interceptors
whether they handle the call after the cache lookup, not at decode time, so a
cache hit never calls can_handle. Emit the track_llm_api_timing service event
for the provider exchange. Bill and log a stream superseded by a router
fallback as the failure of its error frame, with the partial usage warning.
Hand litellm_logging_obj to deployment pre-call hooks as @client does, so the
autorouter baseline cache sees retried requests.
2026-11-11 11:16:30 +00:00
..
caching.rs fix(messages): match python stream cache gate, logging and interceptor order on rust 2026-11-11 11:16:30 +00:00
context.rs feat(messages): retry rejected thinking signatures on rust 2026-11-11 03:09:23 +00:00
diagnostic.rs refactor(rust): rename litellm-core to litellm-inference (#44802) 2026-10-06 07:17:24 -07:00
error.rs feat(messages): send caller clients and unsupported tls through python on rust 2026-11-11 05:03:47 +00:00
lib.rs refactor(inference): rename RouteError to Error (#47771) 2026-10-21 07:03:18 -07:00
outbound.rs fix(messages): forward python-only json values to anthropic as python does 2026-11-11 10:55:43 +00:00
provider.rs refactor(rust): adopt one error discipline across litellm-rust with source chains and Report (#48042) 2026-10-28 09:22:11 -07:00
resources.rs refactor(rust): rename litellm-core to litellm-inference (#44802) 2026-10-06 07:17:24 -07:00