" 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": [
"source": [
"## Gemini Prompting FAQs\n",
"## Gemini Prompting FAQs\n",
"\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",
"\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",
"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",