Skip to content

Commit

Permalink
Update google_generative_ai.ipynb (#14704)
Browse files Browse the repository at this point in the history
  • Loading branch information
169 authored Dec 14, 2023
1 parent 852b9ca commit ff206ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/docs/integrations/chat/google_generative_ai.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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\")"
]
},
{
Expand Down Expand Up @@ -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",
Expand All @@ -295,6 +295,7 @@
},
{
"cell_type": "markdown",
"id": "92b5aca5",
"metadata": {},
"source": []
}
Expand All @@ -315,7 +316,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.2"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit ff206ae

Please sign in to comment.