Hi everyone,
I’m currently exploring the Gemini API for building a conversational system. I understand that the API is stateless, which raises a question about managing conversation history effectively.
Specifically, my scenario involves multiple users (let’s say 5 for simplicity) accessing the same API endpoint. Each user needs to have their own independent, continuous conversation thread.
Given the stateless nature of the API, how can I ensure that:
-
Each user’s conversation history is preserved across their individual interactions?
-
The API can differentiate between the 5 ongoing conversations and doesn’t mix up the context?
Do I need to handle all the context management on the client-side by sending the relevant history with each request? Are there any recommended techniques or best practices for this?
Any insights or guidance on implementing persistent conversations with a stateless Gemini API would be greatly appreciated.
Thanks in advance!