返回全部动态

Anthropic Java SDK 2.51.0 发布:新增上下文窗口超限停止原因

原标题:v2.51.0

Anthropic Java SDK Releases一手来源API 更新质量 63

AI 摘要

Anthropic 发布了 Java SDK 的 2.51.0 版本,新增了 API 停止原因 'model_context_window_exceeded',用于指示模型上下文窗口超限。同时修复了 NoCredentialsException 中 CLI 名称引用错误的问题。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

## 2.51.0 (2026-07-23) Full Changelog: [v2.50.0...v2.51.0](https://github.com/anthropics/anthropic-sdk-java/compare/v2.50.0...v2.51.0) ### Features * **api:** add new stop reason 'model_context_window_exceeded' ([f4b644e](https://github.com/anthropics/anthropic-sdk-java/commit/f4b644ef3ba1cd6726bb3aed879eb5a36101ca3f)) ### Bug Fixes * refer to the CLI as `ant` in NoCredentialsException ([#170](https://github.com/anthropics/anthropic-sdk-java/issues/170)) ([1bc2be9](https://github.com/anthr


发布时间:2026-07-24 01:36
抓取时间:2026-08-02 00:24
来源机构:Anthropic
阅读原文github.com