How to use the open ai api in a specific conversation like in the website

You need the “standalone question”.

Here is how I learned it: Chat Completion Architechture

Here’s how I use it: How to construct the prompt for a standalone question?