llm-anthropic 0.27 发布
英文标题:llm-anthropic 0.27
llm-anthropic 0.27 的主要目标是兼容最新发布的 anthropic v1.0.0 Python 库。该版本将底层 HTTP 客户端从 `httpx` 切换为 `httpx2`,而 OpenAI 也在两周前的 v3.0.0 发布中进行了相同调整。开发者升级至 anthropic 1.0 时可参考 Anthropic 提供的迁移指南;本次插件升级通过 Claude Code 中的 Fable 5 协助完成,并已提交对应 PR。
中文
此次 LLM 的 Anthropic 插件发布,主要是为了兼容最近发布的 anthropic v1.0.0 Python 库。该库将底层依赖从 httpx 切换为 httpx2。OpenAI 也在两周前发布的 v3.0.0 版本中进行了相同调整。
Anthropic 提供了这份适用于升级至 1.0 的迁移指南,因此我在 Claude Code 中向 Fable 5 输入了以下提示:
Upgrade to anthropic>=1 - read https://raw.githubusercontent.com/anthropics/anthropic-sdk-python/refs/heads/main/MIGRATION.md and get the tests passing
这是最终生成的 PR。
English / 原文
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
Here's the resulting PR.