Unable to maintain user session in open ai Chat completion API

Welcome to the OpenAI community @giddpoojab

@novaphil is correct. You will have to pass the messages you want the model to “remember” when responding to the latest user message.

In your case, you can use embeddings. Here’s how you can Use embeddings to retrieve relevant context for AI assistant