mckaywrigley / chatbot-ui

AI chat for every model.
https://chatbotui.com
MIT License
27.49k stars 7.63k forks source link

API keys in environment variables not used for new users #1290

Closed viraniaman94 closed 5 months ago

viraniaman94 commented 5 months ago

Thanks again for the fantastic tool!

I tried to create a new account on my hosted instance, but was asked to add API keys for the models for which I have already set environment variables in Vercel. Screenshots for reference:

Env variables in vercel:

Screenshot 2024-01-26 at 9 05 53 PM

Screenshots of various UI elements where I expected an API key to already be present, but was not:

Screenshot 2024-01-26 at 8 41 42 PM Screenshot 2024-01-26 at 8 41 32 PM Screenshot 2024-01-26 at 8 41 13 PM

To be clear, I don't see the same issue with the first user I created. I can see that Admin has set the API keys for the models I use with the very first user I created, and can access both Mistral and OpenAI models.

mckaywrigley commented 5 months ago

Make sure to redeploy after you've set your env vars.

Can confirm it works as intended.

viraniaman94 commented 5 months ago

The env vars have not been changed after setting. There have been many deployments after setting the env vars.