Files
crewAI/lib
Greyson LaLonde 755b1f21e0 fix: don't leak sync httpx.Client when building Anthropic async client
`_build_async_client` called `_get_client_params()`, which under
`interceptor` constructs a sync `httpx.Client` and stores it under
`http_client`. The async builder then immediately overwrote that key
with an `httpx.AsyncClient`, leaving the sync client allocated and
unclosed.

Add an `include_http_client` flag to `_get_client_params` (defaults
True for the sync path); the async builder passes False so no sync
client is constructed and only the async one is attached.
2026-04-12 05:25:38 +08:00
..
2026-04-10 21:51:51 +08:00