Error: G 5 - 400
Error Details
Model: GPT 5 Provider: openai Status Code: 400
Error Output
{
"message":"Item 'rs_0e2a6688f68ed1c4006948917b62108196b8d8339e47a272ed' of type 'reasoning' was provided without its required following item.",
"type":"invalid_request_error",
"param":"input",
"code":null
}
Additional Context Thats my model config
- name: G 5
provider: openai
model: gpt-5
apiKey: ${{ secrets.OPENAI_API_KEY }}
roles:
- chat
- edit
- apply
capabilities:
- tool_use
defaultCompletionOptions:
contextLength: 200000
maxTokens: 4096
reasoning: true
useLegacyCompletionsEndpoint: true
This appears to be a duplicate or related to the following issues:
- #9164 - Error: GPT-5 - 400 (organization verification required for reasoning summaries)
- #9155 - Error: GPT-5 - 400 (tool call ID mismatch)
- #9245 - Bug: DeepSeek R1 (Reasoner) fails with MCP tools - 400 Missing reasoning_content
- #8458 - No Body Error on GPT-5
The error in this issue is specifically about GPT-5 with reasoning: true and useLegacyCompletionsEndpoint: true, where the API indicates that a 'reasoning' type item was provided without its required following item.
This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.
Fixed by #11785 There may still be cases where this could happen when using one provider like Anthropic and then switching the same conversation to OpenAI. If you run into this, please open a new issue with details.