Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAI token is reset on new IDE launch #125

Open
chaoscreater opened this issue Jan 14, 2024 · 1 comment
Open

OpenAI token is reset on new IDE launch #125

chaoscreater opened this issue Jan 14, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed on_hold Issues that are currently on hold.

Comments

@chaoscreater
Copy link

I've said the OpenAI token and verified it. I can use it just fine. But whenever I restart my PyCharm, the token will be empty and I have to add it again. How can I fix this please?

@chaoscreater
Copy link
Author

Have figured it out. I have no idea why this is related, but this definitely fixed my issue after I tested it on 2 different machines.

Firstly, exit PyCharm or whatever your Jetbrains IDE is.

Go to %Appdata%\JetBrains\PyCharmCE2023.1

Your PyCharm version might be different to mine, so just find the folder that matches your version. In my case, I'm using v2023.1.

Delete these 2 files:

image

Also delete the security.xml file under the options folder. All of those files correspond to this option here:

image

After that, start PyCharm and it should automatically create the 2 files in the screenshot. It may or may not create a security.xml file under options folder, but it doesn't matter. You're now able to save the OpenAI token again and it will retain after you restart PyCharm.

@Blarc Blarc added bug Something isn't working help wanted Extra attention is needed on_hold Issues that are currently on hold. labels Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed on_hold Issues that are currently on hold.
Projects
None yet
Development

No branches or pull requests

2 participants