Documentation Index
Fetch the complete documentation index at: https://docs.crazyrouter.com/llms.txt
Use this file to discover all available pages before exploring further.
GPT-5 思考模式
本文页只写入2026-03-22 已在 Crazyrouter 生产环境复核过的 GPT reasoning 行为。
当前主示例使用:
gpt-5.4POST /v1/responses
Claude 当前不支持
POST /v1/responses。如果你在接 Claude,请使用 POST /v1/messages 或 POST /v1/chat/completions,不要套用本页的 Responses 请求形态。基本用法
生产验证到的响应结构
当前生产返回的关键output.type:
reasoning item 的典型结构为:
message item 中则包含最终输出文本:
reasoning 参数
| 字段 | 类型 | 说明 |
|---|---|---|
effort | string | 推理力度,当前实测可用值包括 low、medium、high |
summary | string | 思考摘要粒度,当前实测 concise、detailed 可用 |
一个实用判断
- 只要更强推理,不关心摘要:只传
effort - 需要拿到可展示的 reasoning 摘要:同时传
summary
- 只传
effort时,reasoningitem 存在,但summary可能为空数组 - 传
summary: "detailed"时,可以稳定拿到summary_text
提取思考摘要
Python
流式思考
当前生产环境已复核到以下 Responses SSE 事件名:response.reasoning_summary_part.addedresponse.reasoning_summary_text.deltaresponse.reasoning_summary_text.doneresponse.output_text.deltaresponse.output_text.doneresponse.completed
Python
当前建议
- 需要可见 reasoning 字段时,优先选
gpt-5.4+ Responses API - 不要把
gpt-5.4Chat Completions 的reasoning_content当成当前主依赖字段 - 如果你只关心最终答案,可在 Chat Completions 继续使用
reasoning_effort