SamurAIGPT / Open-Custom-GPT

Create Custom GPT and add/embed on your site using Assistants api
https://customgpt.thesamur.ai
MIT License
1.59k stars 299 forks source link

The app keeps asking for API Key every time the page is refreshed #11

Closed ascensus-mdb closed 11 months ago

ascensus-mdb commented 11 months ago

Hi. Thank you very much for this projects, it's very useful.

Everything works fine, but there seems to be annoying bug - every time I refresh the browser I see the form asking me to provide OpenAI key, even if I provided it before and I already have a working assistant chat.

image

Any ideas how to prevent it?

Anil-matcha commented 11 months ago

We will add a fix for this in the next update

ascensus-mdb commented 11 months ago

Great, thanks. By the way - wouldn't it be better and safer to store the api key in an .env file?

Anil-matcha commented 11 months ago

Will store the used openai key in local storage of browser of the user which helps in keeping it local and not exposing anywhere

Rohanmrao commented 11 months ago

While you develop the fix, is there a temporary workaround to this ?

Anil-matcha commented 11 months ago

@ascensus-mdb @Rohanmrao This has been fixed now