Tools

AI-generated text

llm-anthropic 0.27 adds support for Anthropic Python SDK 1.0's httpx2 migration

The llm-anthropic plugin has been updated to version 0.27 to ensure compatibility with Anthropic's Python SDK 1.0.0, which migrates its HTTP client from httpx to httpx2; OpenAI made an equivalent change in their v3.0.0 release shortly before.

llm-anthropic 0.27 adds support for Anthropic Python SDK 1.0's httpx2 migration

The llm-anthropic package version 0.27 was released to provide compatibility with Anthropic's Python SDK 1.0.0. Anthropic's 1.0.0 release switches the HTTP client dependency from httpx to httpx2, and the llm-anthropic update adapts the plugin to that change.

What changed and why it matters

  • Anthropic's Python library version 1.0.0 migrates from httpx to httpx2, affecting HTTP request handling and dependency surfaces.
  • OpenAI made the same change in their v3.0.0 release, noted in the announcement as having occurred two weeks earlier.

How the update was implemented

Anthropic published a migration guide for upgrading to 1.0. To produce the required code changes and get tests passing, the maintainer prompted Fable 5 in the Claude Code environment with the following instruction:

"Upgrade to anthropic>=1 - read https://raw.githubusercontent.com/anthropics/anthropic-sdk-python/refs/heads/main/MIGRATION.md and get the tests passing"

That prompt resulted in a pull request containing the adjustments necessary for compatibility and restored test success.

Tags

python, httpx, llm, anthropic, claude

In short, the 0.27 release is a compatibility update: llm-anthropic now supports the httpx2-based Anthropic 1.0.0 SDK, smoothing upgrades for projects that depend on that library.