llm-anthropic 0.27 发布:适配 anthropic v1.0.0 Python 库

Simon Willison 博客·2026-08-25 00:27·5天前
AI 导读

llm-anthropic 0.27 发布,主要适配近期推出的 anthropic v1.0.0 Python 库,后者将依赖从 httpx 切换至 httpx2。OpenAI 在两周前的 v3.0.0 版本中也做了相同变更。Anthropic 提供了迁移指南,作者借助 Claude Code 中的 Fable 5 完成升级并让测试通过。

Simon Willison 博客
42AI 编辑部评分,满分 100

llm-anthropic 0.27 发布:适配 anthropic v1.0.0 Python 库

2026-08-25 00:27· 5天前
AI 导读

llm-anthropic 0.27 发布,主要适配近期推出的 anthropic v1.0.0 Python 库,后者将依赖从 httpx 切换至 httpx2。OpenAI 在两周前的 v3.0.0 版本中也做了相同变更。Anthropic 提供了迁移指南,作者借助 Claude Code 中的 Fable 5 完成升级并让测试通过。

This release of the Anthropic plugin for LLM mainly provides compatibility with the recently released anthropic v1.0.0 Python library, which switches from httpx to httpx2. OpenAI made the same change in their v3.0.0 release two weeks ago.

Anthropic provide this migration guide for upgrading to 1.0, so I prompted Fable 5 in Claude Code with:

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

来源:Simon Willison 博客· simonwillison.net