Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to open an existing chat session with vertexAI gemini chat?

Hello, 

I want the chat sessions to be separate for the logged-in users, so that one user does not have access to another user's chat, therefore for each logged-in user I started a new chat session that looks like this <vertexai.generative_models._generative_models.ChatSession object at 0x000001F9710DEDD0 >

My questions:
1. where are these chat objects are saved in the cloud? How can I access them, to check if a chat session exists to open it?

2. How many different chat sessions can I open for an application and what would be the right approach to create separate chat sessions for each logged in user?

Thank you

0 1 727
1 REPLY 1

I have this same question. When I use model.chatSession in my own custom flask app, two seperately logged in users that initiate the model from within their own session share the same chat history. Seems like the only way to keep them separate is use generate vs chat and store history client side myself.