-
Notifications
You must be signed in to change notification settings - Fork 209
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
Did not find openai_api_key, please add an environment variable OPENAI_API_KEY
which contains it, or pass openai_api_key
as a named parameter. (type=value_error)
#14
Comments
in cmd. |
Thanks a lot, I'll test this tomorrow !!! |
Oops, I got this error, any other option? Error: Got unexpected extra argument ($Env:OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxx) Thanks in advance. |
Got it !!! In the following article I can see that the key can be set in sys var (Windows). |
:OPENAI_API_KEY=: command not found |
Create and Modify Environment Variables on Windows : |
I use Ubuntu Server 22 |
You can ask ChatGPT : To add an environment variable on Ubuntu Server 22, you can follow these steps:
At this point, the source ~/.bashrc Now, the If you want the environment variable to be available globally for all users and across all sessions, you can add it to the Remember to keep your API key secure and avoid sharing it publicly or committing it to version control repositories. |
It seems like the .env file I've copy-pasted from AutoGpt is not working.
Questions :
1 - Where is the template for the .env file ?
2 - How to pass the openai_api_key while running ChromeGPT ?
Thanks in advance.
The text was updated successfully, but these errors were encountered: