mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-29 01:03:17 +00:00
The s3 logger asks for the response text, and the tap kept every response chunk as a Bytes slice of the upstream connection's read buffer, so each open stream held a buffer per chunk until it ended (about 460 KB per open 10k-token stream locally). Chunks are now copied into one owned buffer. The same applies on the request side: the facts kept the raw request slice and a clone of the client headers, both slices of the client connection's read buffer. The body is now released once hooks have run (an owned copy is kept only when an observer reads it) and the headers are copied. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||