Skip to content

Commit 5fe61ba

Browse files
authored
Merge branch 'google:main' into main
2 parents 0b491c3 + 1f03b5c commit 5fe61ba

30 files changed

+3424
-711
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Google Gemini Documentation
1+
# Google Gemini API Website & Documentation
22

33
These are the source files for the guide and tutorials on
44
the [Generative AI developer site](https://ai.google.dev/), home to

examples/gemini/javascript/langchain_quickstart_node/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async function invokeGeminiPro() {
4444
*/
4545
async function invokeGeminiProVision() {
4646
const model = new ChatGoogleGenerativeAI({
47-
modelName: 'gemini-pro-vision',
47+
modelName: 'gemini-1.5-flash',
4848
maxOutputTokens: 1024,
4949
});
5050

examples/gemini/python/langchain/Gemini_LangChain_QA_Pinecone_WebLoad.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
"### Grab a Gemini API Key\n",
201201
"\n",
202202
"To use Gemini you need an *API key*. You can create an API key with one click in [Google AI Studio](https://makersuite.google.com/).\n",
203-
"After creating the API key, you can either set an environment variable named `GOOGLE_API_KEY` to your API Key or pass the API key as an argument when using the `ChatGoogleGenerativeAI` class to access Google's `gemini-pro` and `gemini-pro-vision` models or the `GoogleGenerativeAIEmbeddings` class to access Google's Generative AI embedding model using `LangChain`.\n",
203+
"After creating the API key, you can either set an environment variable named `GOOGLE_API_KEY` to your API Key or pass the API key as an argument when using the `ChatGoogleGenerativeAI` class to access Google's `gemini-1.5-flash` or `gemini-1.5-pro` models or the `GoogleGenerativeAIEmbeddings` class to access Google's Generative AI embedding model using `LangChain`.\n",
204204
"\n",
205205
"In this tutorial, you will set the environment variable `GOOGLE_API_KEY` to configure Gemini to use your API key."
206206
]

examples/gemini/python/llamaindex/Gemini_LlamaIndex_QA_Chroma_WebPageReader.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@
189189
"### Grab an API Key\n",
190190
"\n",
191191
"To use Gemini you need an *API key*. You can create an API key with one click in [Google AI Studio](https://makersuite.google.com/).\n",
192-
"After creating the API key, you can either set an environment variable named `GOOGLE_API_KEY` to your API Key or pass the API key as an argument when using the `Gemini` class to access Google's `gemini-pro` and `gemini-pro-vision` models or the `GeminiEmbedding` class to access Google's Generative AI embedding model using `LlamaIndex`.\n",
192+
"After creating the API key, you can either set an environment variable named `GOOGLE_API_KEY` to your API Key or pass the API key as an argument when using the `Gemini` class to access Google's `gemini-1.5-flash` and `gemini-1.5-pro` models or the `GeminiEmbedding` class to access Google's Generative AI embedding model using `LlamaIndex`.\n",
193193
"\n",
194194
"In this tutorial, you will set the variable `gemini_api_key` to configure Gemini to use your API key."
195195
]

examples/gemini/python/vectordb_with_chroma/vectordb_with_chroma.ipynb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
},
102102
"outputs": [],
103103
"source": [
104-
"!pip install -U -q google.generativeai"
104+
"!pip install -U -q google-generativeai"
105105
]
106106
},
107107
{
@@ -138,7 +138,6 @@
138138
"import pandas as pd\n",
139139
"\n",
140140
"import google.generativeai as genai\n",
141-
"import google.ai.generativelanguage as glm\n",
142141
"\n",
143142
"# Used to securely store your API key\n",
144143
"from google.colab import userdata\n",

0 commit comments

Comments
 (0)