mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-02 19:47:13 +00:00
**fix: Correct getpass usage in Google Generative AI Embedding docs (#29809)** - **Description:** Corrected the `getpass` usage in the Google Generative AI Embedding documentation by replacing `getpass()` with `getpass.getpass()` to fix the `TypeError`. - **Issue:** #29809 - **Dependencies:** None **Additional Notes:** The change ensures compatibility with Google Colab and follows Python's `getpass` module usage standards.
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
"import os\n",
|
||||
"\n",
|
||||
"if \"GOOGLE_API_KEY\" not in os.environ:\n",
|
||||
" os.environ[\"GOOGLE_API_KEY\"] = getpass(\"Provide your Google API key here\")"
|
||||
" os.environ[\"GOOGLE_API_KEY\"] = getpass.getpass(\"Provide your Google API key here\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Reference in New Issue
Block a user