Just wondering. For any conversational chatbot you need to send the chat history to GPT.
So it’s reasonable to expect the messages prop like described in the documentation
Moreover, it’s required. It means that OpenAI in chat mode sends whatever is given in the Prompt section:
This looks odd. You send a manualy-defined bunch of fields, but you can’t send the history of previous interactions.
What I suggest: add the messages option to load the chat history as an array. The Prompt fields are just pushed to this array following by sending the whole array to GPT.
@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