Updated README and Week 8 coming together
This commit is contained in:
@@ -40,11 +40,15 @@
|
||||
"\n",
|
||||
"The next cell is where we load in the environment variables in your `.env` file and connect to OpenAI.\n",
|
||||
"\n",
|
||||
"Troubleshooting if you have problems:\n",
|
||||
"## Troubleshooting if you have problems:\n",
|
||||
"\n",
|
||||
"1. OpenAI takes a few minutes to register after you set up an account. If you receive an error about being over quota, try waiting a few minutes and try again.\n",
|
||||
"2. As a fallback, replace the line `openai = OpenAI()` with `openai = OpenAI(api_key=\"your-key-here\")` - while it's not recommended to hard code tokens in Jupyter lab, because then you can't share your lab with others, it's a workaround for now\n",
|
||||
"3. Contact me! Message me or email ed@edwarddonner.com and we will get this to work.\n",
|
||||
"2. Also, double check you have the right kind of API token with the right permissions. You should find it on [this webpage](https://platform.openai.com/api-keys) and it should show with Permissions of \"All\". If not, try creating another key by:\n",
|
||||
"- Pressing \"Create new secret key\" on the top right\n",
|
||||
"- Select **Owned by:** you, **Project:** Default project, **Permissions:** All\n",
|
||||
"- Click Create secret key, and use that new key in the code and the `.env` file (it might take a few minutes to activate)\n",
|
||||
"4. As a fallback, replace the line `openai = OpenAI()` with `openai = OpenAI(api_key=\"your-key-here\")` - while it's not recommended to hard code tokens in Jupyter lab, because then you can't share your lab with others, it's a workaround for now\n",
|
||||
"5. Contact me! Message me or email ed@edwarddonner.com and we will get this to work.\n",
|
||||
"\n",
|
||||
"Any concerns about API costs? See my notes in the README - costs should be minimal, and you can control it at every point."
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user