PulseAugur
实时 00:54:40
English(EN) Anthropic Python SDK v1.0 drops temperature, top_p and top_k in August 2026 but the API docs still list them

Anthropic Python SDK v1.0 弃用关键参数,造成文档混乱

Anthropic 发布了其 Python SDK 的 1.0.0 版本,该版本在其 Messages API 中移除了对 temperaturetop_ptop_k 参数的支持。此更改将于 2026 年 8 月生效,并将最低 Python 版本提高到 3.10,并将 HTTP 层更新到 httpx2。然而,SDK 的文档和 API 参考目前在这些参数方面提供了冲突的信息。API 参考仍将 temperature、top_p 和 top_k 列为具有默认值的活动参数,而 SDK 的迁移指南则建议它们不再直接受支持,并且必须通过 `extra_body` 参数传递。这种差异给依赖这些参数来获得可复现输出的开发人员带来了不确定性。 AI

影响 使用 Anthropic Python SDK 的开发人员可能需要更新他们的代码,并由于文档不一致而重新评估他们对采样参数的使用。

排序理由 该集群描述了一个具有重大更改和文档不一致的软件开发工具包更新,而不是核心 AI 模型发布或研究里程碑。

在 dev.to — Anthropic tag 阅读 →

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

Anthropic Python SDK v1.0 弃用关键参数,造成文档混乱

报道来源 [1]

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

    Anthropic Python SDK v1.0 于 2026 年 8 月移除 temperature、top_p 和 top_k,但 API 文档仍列出它们

    <h1> Anthropic Python SDK v1.0 drops temperature, top_p and top_k in August 2026 but the API docs still list them </h1> <p><strong>Summary.</strong> Anthropic published version 1.0.0 of its Python SDK to PyPI at 19:58 UTC on 20 August 2026, eight days after OpenAI shipped its own…