Gpt 4o ignoring all user messages except the last one

I want to complete a json step by step using 3 users messages. Simply because the next message rely on the previous one.
But no mater what instructions i put in the messages, only the instructions of the last message are followed.

Does someone experienced this issue ?

Edit: for more context

here is an example:

system prompt: you will perform steps one by one
first user prompt: first do following steps …
second user prompt: second do following steps …
third user prompt: third do following steps …

The problem is that only the last user prompt will be considered, any other user prompt before the last will be completely ignored.

Config: only basic 4o configuration are being used

  • stream: false (doesn’t work, broken output)
  • assistant: off (doesn’t work, broken output)
  • temp: 0.7

You mean like this, where you can’t teach an AI?

That is kind of expected with gpt-4o. It is an overtrained chat AI that will ignore context that attempts to train it, and even system instructions that try to enforce behavior.

It is far less capable than gpt-4. It is an excuse.

Are you passing the entire context each time? I would check that first…

not that I’m aware of. There is nothing in the code that is doing that. We just send the list of messages:

first user prompt: complete part one …
second user prompt: complete part two …

and only the last user prompt is being considered

not like this, here is an example:

system prompt: you will perform steps one by one
first user prompt: first do following steps …
second user prompt: second do following steps …
third user prompt: third do following steps …

The problem is that only the last user prompt will be considered, any other user prompt before the last will be completely ignored.

What is the payload you’re sending? :innocent: