-
Notifications
You must be signed in to change notification settings - Fork 81
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 chatgpt 156 chars api-key compatibility? #77
Comments
Hi @Gigithecode , I'm using 156 char api keys without problems. There are no length check for the key. The error "Invalid API Key" is a 401 status code, meaning that the provided key is invalid. Can you try with a new key or check if the one you are using is correct? |
Hello, I tries with three new keys... no success.
I've $5 on my account. |
Is possible that you have also set the OPENAI_API_KEY environment variable to an invalid key? The priority order is: command line argument > env variable > config file In this case it would overwrite your config.yaml config. |
Hi, |
Would be great to verify if something is wrong reading a long key from config.yaml (ok from OPENAI_API_KEY) |
Hello,
Since openai change to 156 chars long their so-called secret key, chatgpt-cli doesn't seem to work.
"Invalid API Key"
The text was updated successfully, but these errors were encountered: