If you have ever used the OpenAI API, I am sure you have noticed the catch.
Got it?
Right! Every time you call the ChatGPT API, the model has no memory of the previous requests you have made. In other words: each API call is a standalone interaction.
And that is definitely annoying when you need to perform follow-up interactions with the model. A chatbot is the golden example where follow-up interactions are needed.
In this article, we will explore how to give memory to ChatGPT when using the OpenAI API, so that it remembers our previous interactions.
Warm-Up!
Let’s perform some interactions with the model so that we experience this default no-memory phenomenon: