cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.3k stars 489 forks source link

System prompt and API keys suddenly not saved anymore #124

Closed Arche151 closed 1 year ago

Arche151 commented 1 year ago

I don't know why, but even though it worked fine yesterday, today when starting the self-hosted version of Chat with GPT, my API keys and custom system prompt were gone :(

cogentapps commented 1 year ago

Are you running the latest version? There was a bug related to this, but it should be fixed: https://github.com/cogentapps/chat-with-gpt/issues/103

System prompt and API keys are stored in your browser's local storage by default (unless you configure the API key in a config file on the server). Local storage is deleted when you clear history/cache/website data, but should persist otherwise.

Arche151 commented 1 year ago

Thanks for getting back to me and clarifying where the API keys and prompt are saved! The mistake was on my side, as I forgot to include localhost:3000 on Firefox's exception for cookie/cache/website data delete on quitting the browser function.

I included it and everything works fine now :)