Error : BadRequestError: 400 Item of type 'reasoning' was provided without its required following item

When using reasoning and when I provide input, for context i am not using previous_response_id, i get error :

'rs_68636eda2eec81a09eae5a780d7953000caa926c51f9f663' of type 'reasoning' was provided without its required following item

For context my array has:

[
    {
      "role": "user",
      "content": [
        {
          "type": "input_text",
          "text": "how many r's in strawberry"
        }
      ]
    },
    {
      "type": "reasoning",
      "id": "rs_68636fcc1c6481a2b37fe53d122ee12f0ec9f1eca3e280f7",
      "summary": [
        {
          "type": "summary_text",
          "text": "**Counting letters in strawberry**\n\nThe user asked how many 'r's are in the word \"strawberry.\" I spelled it out: s-t-r-a-w-b-e-r-r-y and counted the 'r's. I found three: at the second, seventh, and eighth positions. So, yes, there are three 'r's in \"strawberry.\" This seems straightforward, and I don’t need to remember it since it's just a simple count. The answer is clearly 3!"
        }
      ]
    },
    {
      "role": "assistant",
      "content": [
        {
          "type": "output_text",
          "annotations": [],
          "logprobs": [],
          "text": "There are three “r”s in the word “strawberry.”"
        }
      ]
    },
    {
      "role": "user",
      "content": [
        {
          "type": "input_text",
          "text": "is 4.11 < 4.5 think"
        }
      ]
    }
  ]

I don’t understand what I am doing wrong I believe am following docs exactly any help?

Exact error is:

BadRequestError: 400 Item 'rs_68636fcc1c6481a2b37fe53d122ee12f0ec9f1eca3e280f7' of type 'reasoning' was provided without its required following item
1 Like