danny-avila / LibreChat

Enhanced ChatGPT Clone: Features OpenAI, Assistants API, Azure, Groq, GPT-4 Vision, Mistral, Bing, Anthropic, OpenRouter, Vertex AI, Gemini, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. More features in development
https://librechat.ai/
MIT License
15.31k stars 2.55k forks source link

Enhancement: Session Checks after inactivity #3262

Open kezzzsVS opened 5 days ago

kezzzsVS commented 5 days ago

What features would you like to see added?

I have LibreChat hosted as an Azure Container App with access fronted by an Azure EntraId login page.

When users return to LibreChat after a period of inactivity they might have to re-auth with Azure, however they often end up writing a new prompt and waiting a long time for an error to come back. The error is often blank, or unrelated, so it's not immediately obvious a refresh is necessary.

Is it possible to add some optional functionality which could perform an availability check when returning after a period of time, and prompting the user to reload the page if an unexpected response, or something like a 30 second timeout occurs? I would have suggested simply reloading, however that would be annoying if halfway through writing a prompt.

More details

No additional details

Which components are impacted by your request?

General, UI, Endpoints

Pictures

No response

Code of Conduct

danny-avila commented 5 days ago

There are a couple checks happening already when navigating the app, but I could add some simple ones when starting to write in the text prompt

ChanLicher commented 3 days ago

Similar experience here, sometimes when I was editing my presets or other configs, the session just disconnected. I hope the page does not refresh unless I log out. By the way, very wonderful project though