docs: Fix the syntax error, replace "dotenv.load_env()" with "dotenv.… (#9900)

Description: The documents incorrectly mentions "dotenv.load_env()", but
it should actually be "dotenv.load_dotenv()". You can see the screenshot
below for reference:

python-dotenv: 1.0.0


![image](https://github.com/langchain-ai/langchain/assets/2959046/94dc4b51-cc2f-412d-92e9-16b8ff0d513e)
This commit is contained in:
Bagatur 2023-08-29 15:20:24 -07:00 committed by GitHub
commit 2e65434568
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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()"
]
},
{