跳到正文
数字商店
原文
Wes Roth· @WesRoth · X·· 29 天前精选AI 评分73
AI 导读

Anthropic 为 Claude Messages API 推出消息线程功能公测,服务端会在轮次间缓存对话,开发者仅需发送新消息与上一条回复 ID 即可更快获得响应。该功能已向多数 Claude Code 用户默认开启,并已上线 Claude Platform、AWS Claude Platform、Microsoft Foundry 以及 Google Cloud 托管模型,按标准 token 费率计费。

推荐理由

服务端在多轮交互间自动保留上下文,开发者无需重复传输完整对话历史即可缩短响应延迟。

正文 · AI 翻译

Anthropic 面向 Claude 的 Messages API 发布了公开测试版的消息线程功能。

开发者现在可以发送新消息和上一次响应的 ID,由服务器在多轮对话间保留会话状态。该功能已默认对大多数 Claude Code 用户启用。

此功能可在 Claude Platform、Claude Platform on AWS、Microsoft Foundry 以及 Google Cloud 上由 Anthropic 托管的 Claude Models 上使用。按标准 token 费率计费。

引用ClaudeDevs@ClaudeDevs
消息线程现已在 Messages API 上开启公测。 该 API 会在服务器端缓存多轮对话内容,因此无需重发完整对话,你只需发送新消息和上一条消息的 ID,Claude 就能更快开始响应。 https://t.co/VeiehyqfIg
原文

Message threads are now in public beta on the Messages API. The API caches your conversation on the server between turns, so instead of resending the full conversation, you send only new messages and the previous message ID, and Claude starts responding sooner. https://t.co/VeiehyqfIg

在 X 查看被引用的帖子

来源:Wes Roth · x.com