We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f09b53 commit 98221fbCopy full SHA for 98221fb
chatapi/ChatAPI + LangChain Basics.ipynb
@@ -28,7 +28,14 @@
28
" AIMessage,\n",
29
" HumanMessage,\n",
30
" SystemMessage\n",
31
- ")"
+ ")\n",
32
+ "\n",
33
34
+ "# Supporting libraries\n",
35
+ "import os\n",
36
+ "from dotenv import load_dotenv\n",
37
38
+ "load_dotenv()"
39
]
40
},
41
{
@@ -40,7 +47,7 @@
47
48
"outputs": [],
42
49
"source": [
43
- "OPENAI_API_KEY = '...'"
50
+ "OPENAI_API_KEY = os.getenv('OPENAI_API_KEY', 'YourAPIKeyIfNotSet')"
44
51
45
52
46
53
0 commit comments