mirror of
https://github.com/BerriAI/litellm.git
synced 2026-12-02 01:28:38 +00:00
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. |
||
|---|---|---|
| .. | ||
| call.rs | ||
| observation.rs | ||