docs: Fix the syntax error, replace "dotenv.load_env()" with "dotenv.load_dotenv()".

This commit is contained in:
tongtie
2023-08-29 11:52:50 +08:00
parent e80834d783
commit 82a3c2a557
10 changed files with 10 additions and 10 deletions

View File

@@ -62,7 +62,7 @@
"\n",
"# Set env var OPENAI_API_KEY or load from a .env file:\n",
"# import dotenv\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{

View File

@@ -54,7 +54,7 @@
"\n",
"# Set env var OPENAI_API_KEY or load from a .env file:\n",
"# import dotenv\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{

View File

@@ -42,7 +42,7 @@
"# Set env var OPENAI_API_KEY or load from a .env file\n",
"# import dotenv\n",
"\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{

View File

@@ -73,7 +73,7 @@
"\n",
"# Set env var OPENAI_API_KEY or load from a .env file:\n",
"# import dotenv\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{

View File

@@ -70,7 +70,7 @@
"# Set env var OPENAI_API_KEY and SERPAPI_API_KEY or load from a .env file\n",
"# import dotenv\n",
"\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{

View File

@@ -47,7 +47,7 @@
"# Set env var OPENAI_API_KEY or load from a .env file\n",
"# import dotenv\n",
"\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{

View File

@@ -50,7 +50,7 @@
"# Set env var OPENAI_API_KEY or load from a .env file\n",
"# import dotenv\n",
"\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{

View File

@@ -76,7 +76,7 @@
"# Set env var OPENAI_API_KEY or load from a .env file\n",
"# import dotenv\n",
"\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{

View File

@@ -44,7 +44,7 @@
"\n",
"# Set env var OPENAI_API_KEY or load from a .env file:\n",
"# import dotenv\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{

View File

@@ -41,7 +41,7 @@
"\n",
"# Set env var OPENAI_API_KEY or load from a .env file:\n",
"# import dotenv\n",
"# dotenv.load_env()"
"# dotenv.load_dotenv()"
]
},
{