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 费率计费。
推荐理由
服务端在多轮交互间自动保留上下文,开发者无需重复传输完整对话历史即可缩短响应延迟。
正文 · 原文
Anthropic released message threads in public beta for Claude’s Messages API.
Developers can now send new messages and the previous response ID, with the server retaining the conversation between turns. The feature is already enabled by default for most Claude Code users.
It is available on Claude Platform, Claude Platform on AWS, Microsoft Foundry, and Anthropic-managed Claude Models on Google Cloud. Standard token rates apply.
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