Skip to content

Feature request: migrate to httpx2 #947

Description

@Tialo

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions