#Response API x GPT-5 (and mini)

1 messages · Page 1 of 1 (latest)

turbid night
#

Hello!

I switched my model to GPT-5 and GPT-5-mini with my Response API python implementation.

After the switch, I keep experiencing the following error:

openai.BadRequestError: Error code: 400 - {'error': {'message': \"Item 'rs_689ad59654dc8192852a1972d0dcb89d08577a79a12eedb6' of type 'reasoning' was provided without its required following item.\", 'type': 'invalid_request_error', 'param': 'input', 'code': None}}"

This occurs after the initial turn.
For the initial turn, I send a set of developer and system instruction together with static user prompt.

The initial turn will analyze some data set uploaded via Container API.

Then after we receive the response, we store the responseId and use it as previous_response_id.
This enables our service to allow further interaction with the AI with context.

Before switching, we were using GPT-4.1 and GPT-4.1-mini which was fine and no problems.

turbid night
#

@dry cobalt can move the discussion here?

dry cobalt
#

Are you passing the reasoning parameter?

#

Minimal, low, medium, high

turbid night
dry cobalt
#

Sent you a DM

turbid night
#

oh so i need to pass a reasoning value.. let me try

turbid night
#

@dry cobalt thanks bro! it worked. I added a reasoning param on my implementation from your message that gpt-5 is a reasoning model.

will do more tests to see how it goes.

turbid night
#

ah. it works few times but most of the time it fails.