针对 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。