The httpx package is no longer actively maintained and has been succeeded by httpx2 maintained by Pydantic.
Using different LLM SDKs with openrouter is inconvenient because both httpx and httpx2 have to be installed in the same project.
httpx2 has already been adopted by several major projects:
OpenAI SDK
Anthropic SDK
Hugging Face Hub
MCP SDK
LangChain has since added support for the new major versions of both the OpenAI and Anthropic SDKs 1, 2.
This is a breaking change, but to make migration easier Pydantic provides a migration guide.
This will help simplify requirements of downstream applications and also ensure the SDK continues to receive upstream maintenance and security fixes.
The httpx package is no longer actively maintained and has been succeeded by httpx2 maintained by Pydantic.
Using different LLM SDKs with openrouter is inconvenient because both httpx and httpx2 have to be installed in the same project.
httpx2 has already been adopted by several major projects:
OpenAI SDK
Anthropic SDK
Hugging Face Hub
MCP SDK
LangChain has since added support for the new major versions of both the OpenAI and Anthropic SDKs 1, 2.
This is a breaking change, but to make migration easier Pydantic provides a migration guide.
This will help simplify requirements of downstream applications and also ensure the SDK continues to receive upstream maintenance and security fixes.