aifollow.news
返回 Rohan Paul
Rohan Paul· @rohanpaul_ai · X· · 原发布时间 AI 评分40

Anthropic 将 Messages API 从 Python 迁移至 Rust

AI 导读

Anthropic 称,迁移后每次请求的 CPU 使用量约减少 70%。其工程文章介绍了团队如何借助原有服务核对新版本的行为,并使用 Claude 智能体查找和修复两个版本之间的差异。

原帖引用 · 原文

该语言的正文暂不可用,当前显示已有版本。

@rohanpaul_ai

Anthropic rebuilt its Messages API in Rust, and each request now uses about 70% less CPU.

Python slowed every request, and API traffic has grown roughly 1,800 times since early 2024.

Claude wrote a first draft in about a week, but proving it behaved exactly like Python was harder.

引用Anthropic@AnthropicAI
We recently migrated our Messages API from Python to Rust. On our engineering blog, we share how we used the existing service to verify the new one, with teams of Claude agents tracking down and fixing differences between the two versions. https://www.anthropic.com/research/migrating-api-to-rust
在 X 查看这条帖子 ↗

来源:Rohan Paul · x.com

产品
发现内容有误?提交纠错