创建模型响应
gpt-5.4可以正常返回object: "response"- 基础文本请求的
output当前可稳定拿到message - 流式请求可稳定观察到
response.created、response.in_progress、response.output_item.added、response.content_part.added、response.output_text.delta
Claude 当前不支持
POST /v1/responses。如果你在接 Claude,请改用 POST /v1/messages 或 POST /v1/chat/completions。基本请求
流式请求
- 用
response.output_text.delta逐步拼接文本 - 用
response.completed或连接结束作为收尾信号
当前建议
- 新的 GPT 文本调用,优先从
gpt-5.4+/v1/responses起步 - 如果你需要工具调用,继续看 Responses Function Calling
- 如果你需要联网搜索,继续看 Responses Web 搜索
- 如果你需要可见推理标记,继续看 GPT-5 Thinking