mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-18 00:51:18 +00:00
Update google_generative_ai.ipynb
(#14704)
This commit is contained in:
parent
852b9ca494
commit
ff206ae30d
@ -41,7 +41,7 @@
|
|||||||
"import os\n",
|
"import os\n",
|
||||||
"\n",
|
"\n",
|
||||||
"if \"GOOGLE_API_KEY\" not in os.environ:\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": [
|
"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",
|
||||||
"2. System messages are not accepted.\n",
|
"2. System messages are not accepted.\n",
|
||||||
@ -295,6 +295,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
|
"id": "92b5aca5",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": []
|
"source": []
|
||||||
}
|
}
|
||||||
@ -315,7 +316,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.11.2"
|
"version": "3.11.5"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user