| 路径 | /v1/responses |
|---|---|
| 输入 | input(不再是 messages) |
| 内置工具 | web_search、file_search、code_interpreter |
| 定位 | 承接 Chat Completions 与 Assistants 的演进 |
最小调用(curl)
最小调用(curl)
curl -s https://api.openai.com/v1/responses -H "Authorization: Bearer $OPENAI_API_KEY" -H "Content-Type: application/json" -d '{"model":"gpt-4o-mini","input":"用一句话解释 Responses API"}'新项目可优先评估 Responses;存量系统继续用 chat/completions 也受支持,迁移时注意请求/响应结构变化。