跳到正文
北京时间
原文
OpenAI Developers· @OpenAIDevs · X·· 2026-04-30精选AI 评分62
AI 导读

⚙️ 我们通过 Responses API 中的 WebSockets 让代理循环运行得更快 随着 Codex 速度提升,瓶颈从推理转移到了低效的 API 调用 WebSockets 在工具调用之间保持响应状态活跃,帮助工作流程端到端运行速度提升高达 40% https://openai.com/index/speeding-up-agentic-workflows-with-websockets

推荐理由

这不是颠覆性更新,但对依赖 Responses API 搭 agent 的开发者是个实打实的好消息,loop 加速 40% 意味着延迟和成本双降,官方推荐的最佳实践值得直接套用。

正文 · 原文

⚙️ We made agent loops faster with WebSockets in the Responses API

As Codex got faster, the bottleneck moved from inference to inefficient API calls

WebSockets keep response state warm across tool calls, helping workflows run up to 40% faster end to end

https://openai.com/index/speeding-up-agentic-workflows-with-websockets

来源:OpenAI Developers · x.com