Usage of api - How it really works?

I come with a question, which is whether I can communicate via API requests as in GPT4 chat. By that I mean can I get an answer to my prompt and ask it to continue so that he continues its previous statement.

1 Like


You should append the reply from the model to the end of your messages structure with the append function and give it the role of “assistant” you can then add the next “user” role message when the user asks a new question, now you are passing the old question and answers along with the new question, that lets the model see the whole conversation.

See this thread

1 Like