OpenAI API - Handling different prompts but same context with a fined tuned model

If you want multi-turn conversations where the AI is aware of previous chat, your software must remember those prior conversations of the user’s session and pass them again before the latest question. And then manage so the chat doesn’t get too long.

Here is a code example in a forum topic on the same question:

and an easier to understand python example I wrote for forum instruction: