litellm/litellm-rust/crates/host-http
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
..
src refactor(rust): centralize host execution and compose callbacks (#43515) 2026-09-28 19:20:27 +00:00
tests fix(messages): hand plain Rust Messages rate-limit headers to logging 2026-11-25 07:04:14 -08:00
AGENTS.md refactor(rust): centralize host execution and compose callbacks (#43515) 2026-09-28 19:20:27 +00:00
Cargo.toml refactor(rust): centralize host execution and compose callbacks (#43515) 2026-09-28 19:20:27 +00:00