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

Incorrect API key provided: your-ope*******-key. #52

Closed
dudelama opened this issue Apr 2, 2023 · 13 comments
Closed

Incorrect API key provided: your-ope*******-key. #52

dudelama opened this issue Apr 2, 2023 · 13 comments

Comments

@dudelama
Copy link

dudelama commented Apr 2, 2023

openai.error.AuthenticationError: Incorrect API key provided: your-ope*******-key. You can find your API key at https://platform.openai.com/account/api-keys.

@dudelama
Copy link
Author

dudelama commented Apr 2, 2023

Getting the above error even though i have a valid API Key, not sure how to check this.

@dudelama
Copy link
Author

dudelama commented Apr 2, 2023

Only workd with GPT - 4 ?

@Torantulino
Copy link
Member

Torantulino commented Apr 3, 2023

Please try the following steps for me and report back:

  • Ensure you have a file in the root project directory called ".env".
  • Ensure it contains your OpenAI key

@dudelama
Copy link
Author

dudelama commented Apr 3, 2023 via email

@bowu
Copy link

bowu commented Apr 3, 2023

I have the same problem. BTW, I have access to GPT4 APIs.

@sanity
Copy link

sanity commented Apr 3, 2023

I had the same problem. Turned out I had an old key in my OPENAI_KEY environment variable which appears to override whatever is in .env.

@dudelama
Copy link
Author

dudelama commented Apr 3, 2023

image
Added correctly

@dudelama
Copy link
Author

dudelama commented Apr 3, 2023

Invalid key error, not able to proceed further, rest all seems working fine.
image

@jaseva
Copy link

jaseva commented Apr 3, 2023

@dudelama you need to also add your keys to the scripts/keys.py script file.

@dudelama
Copy link
Author

dudelama commented Apr 3, 2023

This issue is resolved, the ensure you add the key within the ' ', alternatively add a keys.py and add the same what you added in the .py. What a silly mistake i have made.

@ZeyadKm
Copy link

ZeyadKm commented Apr 14, 2023

This issue is resolved, the ensure you add the key within the ' ', alternatively add a keys.py and add the same what you added in the .py. What a silly mistake i have made.

Same issue but I don't understand. Elaborate please?

@The-Amazing-Coder
Copy link

This issue is resolved, the ensure you add the key within the ' ', alternatively add a keys.py and add the same what you added in the .py. What a silly mistake i have made.

what do you mean by that

@richbeales
Copy link
Contributor

closing as OP indicates it's resolved

Say383 pushed a commit to Say383/Auto-GPT that referenced this issue Sep 8, 2023
SquareandCompass pushed a commit to SquareandCompass/Auto-GPT that referenced this issue Oct 21, 2023
* Update no_update_context, fix upsert docs

* Recreate only once

* Add comments to get_or_create

---------

Co-authored-by: Chi Wang <wang.chi@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants