💬 观点Simon Willison
llm-anthropic 0.27 — Simon Willison 发布 llm
Simon Willison 发布 llm-anthropic 0.27,适配 anthropic 库升级到 httpx2,并用 AI 辅助完成迁移。
2026-08-24原文
本文为要点摘要,完整细节以原文为准。
🧭 一图看懂
由原文自动提炼 · 以原文为准点击任一分支,查看这一点的一句话解读
llm-anthropic 0.27 发布
为兼容 anthropic v1.0.0 Python 库,从 httpx 切换到 httpx2
- anthropic v1.0.0 改用 httpx2
- OpenAI v3.0.0 两周前同样切换
⚙️ 流程拆解
STEP 1读取官方迁移指南
STEP 2升级依赖至 anthropic>=1
STEP 3切换 httpx 到 httpx2
STEP 4跑通测试
STEP 5提交 PR
🔗 涉及的概念与玩家
- Simon Willison人物
- llm-anthropic产品
- LLM产品
- Anthropic公司
- Claude模型
- Claude Code产品
- httpx方法
- httpx2方法
- Simon Willison—发布→llm-anthropic
- llm-anthropic—是插件→LLM
- llm-anthropic—对接→Anthropic
- llm-anthropic—访问→Claude
- llm-anthropic—切换到→httpx2
- Claude Code—辅助升级→llm-anthropic
- 该版本主要兼容 anthropic Python 库 v1.0.0,后者从 httpx 切换到 httpx2,OpenAI 的 v3.0.0 也做了同样变更。
- 迁移过程借助 Claude Code 中的 Fable 5 模型,通过提示词读取官方迁移指南并让测试通过,最终生成 PR。
- 对开发者而言,AI 辅助迁移可显著降低升级第三方库时的重复劳动,但需人工审查确保正确性。
原文:llm-anthropic 0.27 · 作者 Simon Willison
🕸 顺着图谱继续读
- llm 0.32.1 — LLM 0.32.1 修复因 OpenAI 库弃用 httpx 导致的安装问题,2026-08-21 · 共同涉及 LLM、httpx、httpx2
- llm 0.33 — Simon Willison 发布 llm 0.33,升级 OpenAI 库、支2026-08-22 · 共同涉及 Simon Willison、LLM、httpx
- llm-anthropic 0.26 — llm2026-08-04 · 共同涉及 llm-anthropic、LLM、Anthropic
- llm-anthropic 0.29 — Simon Willison 发布 llm2026-09-22 · 共同涉及 Simon Willison、llm-anthropic、Anthropic