Hacker News
Pydantic Has Taken Over HTTPX as httpx2, and the OpenAI Python SDK Already Switched
Pydantic published httpx2, a maintained continuation of HTTPX under BSD-3-Clause, citing limited recent activity on the original project, and openai-python now installs and uses it for both sync and async requests. The breaking change is TLS: httpx2 uses the operating system trust store instead of the certifi CA bundle, which will break minimal container images with no system CA certificates, environments behind TLS-inspecting corporate proxies, and anything shipping a custom bundle. The SDK provides DefaultHttpx2Client and DefaultAsyncHttpx2Client migration helpers plus an escape hatch for injecting legacy HTTPX clients for RESPX tests and aiohttp adapters.
↳ Follow the thread