跳到正文
Anthropic Engineering·· 8 天前AI 评分70

Anthropic 如何将 Messages API 从 Python 迁移到 Rust

Migrating our Messages API to Rust

AI 导读

Anthropic 将 Messages API 从 Python 迁移到 Rust,并把生产 API 用作验证器,通过 shadowing、差异指纹和多层验证循环检查行为一致性。该迁移使每次请求的 CPU 使用量降低约 70%,首个 token 的中位耗时缩短约 20%,且未让服务下线或暂停功能开发。

来源:Anthropic Engineering · anthropic.com