From f1792e486e72350616c49c9db66412c1595d61ba Mon Sep 17 00:00:00 2001 From: Akmal Ali Jasmin Date: Sun, 16 Feb 2025 08:11:00 +0530 Subject: [PATCH] fix: Correct getpass usage in Google Generative AI Embedding docs (#29809) (#29810) **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. --- .../docs/integrations/text_embedding/google_generative_ai.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/integrations/text_embedding/google_generative_ai.ipynb b/docs/docs/integrations/text_embedding/google_generative_ai.ipynb index 7afdf8b34fd..a3993bad0a7 100644 --- a/docs/docs/integrations/text_embedding/google_generative_ai.ipynb +++ b/docs/docs/integrations/text_embedding/google_generative_ai.ipynb @@ -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\")" ] }, {