Multi-turn conversation using the API (Like the web version of chatgpt)

hi, is it possible to have the same multi-turn conversation experience I have on the web version of ChatGPT, but using the ChatGPT API?

From what I have seen, every request I send using the API is considered as a new conversation/dialog.

1 Like

There is no API for ChatGPT, but you can do the same thing with GPT and suitable prompts

It has no memory of previous API calls, so you need to include part of the conversation with subsequent requests. You have to make sure you don’t go over the token limit though

Also, because the prompt will be quite long, you will start to eat 4000 token on each request - so watch the cost of this - especially on Davinci