-
-
Notifications
You must be signed in to change notification settings - Fork 687
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
Implement API key reset option #30
Comments
Hey I messed up and I pasted my API key twice, do you need help with this feature |
@highonweb solution for now: #5 |
Thanks bro. Got it |
I've been working on a PR with this that I'll try to make a PR for within the next week. |
That doesn't work. There is no |
Implement an option to reset an API key using command line argument
--reset-key
. When user provides this flag delete file located in~/.config/shell-gpt/api_key.txt
and ask for new API key. Additionally impement API key validation. Since OpenAI doesn't have dedicated endpoint just for key validation, callhttps://api.openai.com/v1/completions
with some test prompt, make sure response status code is not 403, if so, ask user for valid API key.The text was updated successfully, but these errors were encountered: