microsoft / sample-app-aoai-chatGPT

Sample code for a simple web chat experience through Azure OpenAI, including Azure OpenAI On Your Data.
MIT License
1.44k stars 2.15k forks source link

Mutliple Users using AI STUDIO deployed APP with history enbaled in cosmo db but the history is visible of all the users and not based on user id. #851

Open rehat22 opened 1 month ago

rehat22 commented 1 month ago

Shouldn't it show history based on cookie or device? The entire user history of multiple users are visible in the history tab and its not showing history based on per user i.e each person has his own history rather than seeing the collective history of all users. Also the Cosmo db backend showing user id like this now. Screenshot 2024-05-10 at 5 57 24 PM Auth enabled is set to false

neissljanik commented 1 month ago

If there's no authentication the app cannot know who is currently using it, so it can't save or display a specific user's history.

speedbunny commented 1 month ago

There is an open pull request awaiting approval to hide the chat history button for cases where multiple users are using the same instance that you may like to follow [Add env var to show/hide Chat History Button] (https://github.com/microsoft/sample-app-aoai-chatGPT/pull/771)