litellm/litellm-rust/crates/host-python
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 fix(rust): convert a dataclass struct variant payload like any other struct 2026-11-14 06:26:32 -08:00
tests fix(messages): hand plain Rust Messages rate-limit headers to logging 2026-11-25 07:04:14 -08:00
AGENTS.md fix(rust): read a dict subclass by its items when converting Python input 2026-11-14 01:43:42 -08:00
Cargo.toml refactor(host-python): run the Python driver as one async body (#46235) 2026-10-14 17:19:06 -07:00