mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-26 16:43:35 +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:
parent
80ca310c15
commit
f1792e486e
@ -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\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user