PulseAugur
实时 23:10:03
English(EN) Anthropic Python SDK 1.0 dropped httpx on 20 August 2026: what breaks in your mocks and tracing

Anthropic Python SDK 1.0 因升级到 httpx2 而破坏 HTTP 模拟

Anthropic 的 Python SDK 1.0 版本于 2026 年 8 月 20 日发布,引入了多项重大变更,包括升级到 httpx2 和最低 Python 版本要求 3.10。主要修改包括从消息创建方法中移除 temperature、top_p 和 top_k 参数,弃用旧的 Text Completions API,以及更改原始响应的处理方式。由于 SDK 现在使用 httpx2(httpx 的一个分支),而许多现有的 HTTP 模拟和跟踪库(如 respxpytest-httpx)仍配置为与旧的 httpx 模块配合使用,因此会出现一个重大的静默故障模式,导致模拟在没有错误的情况下失败。 AI

影响 使用 Anthropic Python SDK 的开发者可能会因依赖项更改而与现有的 HTTP 模拟和跟踪工具集成时遇到问题。

排序理由 该条目详细说明了软件库依赖项管理中的一项重大变更及其对开发者工具的影响。

在 dev.to — Anthropic tag 阅读 →

AI 生成摘要 · Google Gemini · 来自 1 个来源。 我们如何撰写摘要 →

Anthropic Python SDK 1.0 因升级到 httpx2 而破坏 HTTP 模拟

报道来源 [1]

  1. dev.to — Anthropic tag TIER_1 English(EN) · Manu Shukla ·

    Anthropic Python SDK 1.0 于 2026 年 8 月 20 日弃用 httpx:您的模拟和追踪将出现什么问题

    <h1> Anthropic Python SDK 1.0 dropped httpx on 20 August 2026: what breaks in your mocks and tracing </h1> <p><strong>Summary.</strong> Version 1.0.0 of the <code>anthropic</code> Python package was published to PyPI on 20 August 2026 at 19:58 UTC. It requires Python 3.10 or late…