litellm/litellm-rust
devin-ai-integration[bot] 4eb340abe0
fix(callbacks-legacy-python): traverse and release the retained headers dict (#43274)
* fix(callbacks-legacy-python): traverse and release the retained headers dict

LegacyLogging keeps the headers dict it hands to pre_call and post_call, but
its traverse never reported that edge to the collector and close never dropped
it. A cycle a callback builds through that dict could not be collected, and a
closed call kept the dict alive until the driver dropped the whole adapter.
Visit and clear headers like body, with regression tests for both

* refactor(callbacks-legacy-python): move the test support module into its own file

---------

Co-authored-by: Yujong Lee <yujong@berri.ai>
2026-09-25 20:24:58 -07:00
..
crates fix(callbacks-legacy-python): traverse and release the retained headers dict (#43274) 2026-09-25 20:24:58 -07:00
.gitignore feat: add LiteLLM Rust workspace with Mistral OCR bridge (#31033) 2026-06-23 13:16:47 -07:00
AGENTS.md refactor(rust): extract the host coroutine into its own crate (#43129) 2026-09-25 04:20:06 +00:00
Cargo.lock refactor(http): hand out an owned Client and route all providers through the pool (#43245) 2026-09-25 18:31:15 -07:00
Cargo.toml feat(testkit): agent clients for Claude Code, Codex and opencode (#43181) 2026-09-25 17:27:30 +00:00
clippy.toml refactor(http): hand out an owned Client and route all providers through the pool (#43245) 2026-09-25 18:31:15 -07:00