From ff206ae30d39e7daa27cfcc449c748c024fcaec0 Mon Sep 17 00:00:00 2001 From: Bob Lin Date: Fri, 15 Dec 2023 02:58:25 +0800 Subject: [PATCH] Update `google_generative_ai.ipynb` (#14704) --- docs/docs/integrations/chat/google_generative_ai.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/docs/integrations/chat/google_generative_ai.ipynb b/docs/docs/integrations/chat/google_generative_ai.ipynb index 827ac30490..67e3812a8e 100644 --- a/docs/docs/integrations/chat/google_generative_ai.ipynb +++ b/docs/docs/integrations/chat/google_generative_ai.ipynb @@ -41,7 +41,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\")" + " os.environ[\"GOOGLE_API_KEY\"] = getpass.getpass(\"Provide your Google API Key\")" ] }, { @@ -285,7 +285,7 @@ "source": [ "## Gemini Prompting FAQs\n", "\n", - "As of the time this doc was written (2024/12/12), Gemini has some restrictions on the types and structure of prompts it accepts. Specifically:\n", + "As of the time this doc was written (2023/12/12), Gemini has some restrictions on the types and structure of prompts it accepts. Specifically:\n", "\n", "1. When providing multimodal (image) inputs, you are restricted to at most 1 message of \"human\" (user) type. You cannot pass multiple messages (though the single human message may have multiple content entries)\n", "2. System messages are not accepted.\n", @@ -295,6 +295,7 @@ }, { "cell_type": "markdown", + "id": "92b5aca5", "metadata": {}, "source": [] } @@ -315,7 +316,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.2" + "version": "3.11.5" } }, "nbformat": 4,