PulseAugur
中
实时 07:35:51
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 弃用 httpx,破坏模拟

Anthropic 的 Python SDK 已发布 1.0.0 版本,引入了重大更改,包括从 httpx 库迁移到 httpx2。此次更新将最低 Python 版本提高到 3.10,并删除了多项功能,例如旧的 Text Completions API 和 messages API 的某些参数。由此产生的关键问题是,为配合旧版 httpx 而设计的 HTTP 模拟和跟踪库(如 respx 和 pytest-httpx)可能无法匹配新 SDK 发出的请求,从而导致测试命中实时 API 或意外失败。 AI

影响 使用 Anthropic SDK 的开发者可能会因不兼容的 HTTP 模拟库而面临静默测试失败。

排序理由 这是 AI 公司 SDK 的软件库更新,而非核心模型发布或研究论文。

在 dev.to — Anthropic tag 阅读 →

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

Anthropic Python SDK 1.0 弃用 httpx,破坏模拟

本文如何被排名

Signal score
0 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
这是 AI 公司 SDK 的软件库更新,而非核心模型发布或研究论文。
Source corroboration
2 independent sources
Multiple independent publishers reporting the same story raises confidence that it's real and newsworthy.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
46 days old
Aged out of breaking-news scoring windows; ranking reflects the durable signal from the full source set.

完整方法见我们的编辑标准。

报道来源 [2]

  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…

  2. Mastodon — mastodon.social TIER_1 日本語(JA) · [email protected] ·

    Anthropic SDK 弃用了 httpx。我没注意到,因为它迁移后仍然可用。

    anthropic SDK が httpx をやめました。移行しても動くので気づけません https:// qiita.com/jqit_suwa/items/5edf 6037203a15c3fdfd?utm_campaign=popular_items&utm_medium=feed&utm_source=popular_items # qiita # Python # AI # httpx # 生成AI # Anthropic