litellm/litellm-rust/crates/inference/src
mateo-berri c49ebdf61b fix(messages): hand plain Rust Messages rate-limit headers to logging
A plain /v1/messages call on the opt-in Rust route (LITELLM_RUST=true) gave
logging no response headers, so the remaining tokens and requests gauges never
updated for it. The route now hands the provider's headers to post_call, and
the host records only the anthropic-ratelimit-* and x-ratelimit-* ones. Streams
on that route record the same set on top of the prefixed entries they already
kept, so spend, spillover pricing and other logged fields do not change.

The approach follows main's #49611, adapted to this line's logging calls.
2026-11-25 07:04:14 -08:00
..
caching.rs feat(rust): settle EdenAI Messages reported cost (#45698) 2026-10-12 17:39:08 -07:00
context.rs fix(messages): hand plain Rust Messages rate-limit headers to logging 2026-11-25 07:04:14 -08:00
diagnostic.rs refactor(rust): rename litellm-core to litellm-inference (#44802) 2026-10-06 07:17:24 -07:00
error.rs refactor(rust): extract inference-responses crate (#44811) 2026-10-06 07:17:25 -07:00
lib.rs refactor(rust): extract inference-testing crate (#44873) 2026-10-06 16:33:06 +00:00
outbound.rs refactor(rust): rename litellm-core to litellm-inference (#44802) 2026-10-06 07:17:24 -07:00
provider.rs refactor(rust): rename litellm-core to litellm-inference (#44802) 2026-10-06 07:17:24 -07:00
resources.rs refactor(rust): rename litellm-core to litellm-inference (#44802) 2026-10-06 07:17:24 -07:00