Why OpenAI doesn't contain "messages" prop to send the chat history?

@Jon Thanks for reply. Unfortunately, I can’t send the WHOLE history. I might send 1 last message with reply, 3 last message or like that. It depends on how many fields I create maually.

In this example I’m able to send 3 pieces of chat: a request, a reply, a new request. But what if I have to send 20 or 50 messages? There’s no possibility to create these fields dynamically

And this HTTP request sends the messages property in the right way - as a dynamic array of messages:

upd I found similar request here: Allow to use a dynamic list as user/assistant prompts for chats in OpenAI