Examples and guides for using the OpenAI API
docs: create a block to show how to export parameter to environment in terminal
liuliuc7f3f31b2cbb
diff --git a/examples/vector_databases/redis/getting-started-with-redis-and-openai.ipynb b/examples/vector_databases/redis/getting-started-with-redis-and-openai.ipynbindex 8162f8f9..ccfe21e6 100644--- a/examples/vector_databases/redis/getting-started-with-redis-and-openai.ipynb+++ b/examples/vector_databases/redis/getting-started-with-redis-and-openai.ipynb@@ -94,7 +94,17 @@"\n","If you don't have an OpenAI API key, you can get one from [https://beta.openai.com/account/api-keys](https://beta.openai.com/account/api-keys).\n","\n",- "Once you get your key, please add it to your environment variables as `OPENAI_API_KEY`."+ "Once you get your key, please add it to your environment variables as `OPENAI_API_KEY` by using following command:"+ ]+ },+ {+ "cell_type": "code",+ "execution_count": null,+ "id": "be28faa6",+ "metadata": {},+ "outputs": [],+ "source": [+ "! export OPENAI_API_KEY=\"your API key\""]},{