-
Notifications
You must be signed in to change notification settings - Fork 2.2k
GOOGLE_API_KEY -> GEMINI_API_KEY
#1020
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -81,7 +81,7 @@ | |||||
| "source": [ | ||||||
| "## Configure your API key\n", | ||||||
| "\n", | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GOOGLE_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see [Authentication](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Authentication.ipynb) for an example." | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GEMINI_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see [Authentication](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Authentication.ipynb) for an example." | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
@@ -95,8 +95,8 @@ | |||||
| "from google import genai\n", | ||||||
| "from google.colab import userdata\n", | ||||||
| "\n", | ||||||
| "GOOGLE_API_KEY=userdata.get('GOOGLE_API_KEY')\n", | ||||||
| "client = genai.Client(api_key=GOOGLE_API_KEY)" | ||||||
| "GEMINI_API_KEY=userdata.get('GEMINI_API_KEY')\n", | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency and adherence to the Google Python Style Guide (and PEP 8), please add a space around the assignment operator.1
Suggested change
Style Guide ReferencesFootnotes
|
||||||
| "client = genai.Client(api_key=GEMINI_API_KEY)" | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -83,7 +83,7 @@ | |||||
| "id": "55qIbUyLuLTS" | ||||||
| }, | ||||||
| "source": [ | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GOOGLE_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see the [Authentication](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Authentication.ipynb) quickstart for an example." | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GEMINI_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see the [Authentication](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Authentication.ipynb) quickstart for an example." | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
@@ -97,8 +97,8 @@ | |||||
| "from google import genai\n", | ||||||
| "from google.colab import userdata\n", | ||||||
| "\n", | ||||||
| "GOOGLE_API_KEY=userdata.get('GOOGLE_API_KEY')\n", | ||||||
| "client = genai.Client(api_key=GOOGLE_API_KEY)" | ||||||
| "GEMINI_API_KEY=userdata.get('GEMINI_API_KEY')\n", | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency and adherence to the Google Python Style Guide (and PEP 8), please add a space around the assignment operator.1
Suggested change
Style Guide ReferencesFootnotes
|
||||||
| "client = genai.Client(api_key=GEMINI_API_KEY)" | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -81,7 +81,7 @@ | |||||
| "source": [ | ||||||
| "## Set up your API key\n", | ||||||
| "\n", | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GOOGLE_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see the [Authentication](https://github.com/google-gemini/gemini-api-cookbook/blob/main/quickstarts/Authentication.ipynb) quickstart for an example." | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GEMINI_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see the [Authentication](https://github.com/google-gemini/gemini-api-cookbook/blob/main/quickstarts/Authentication.ipynb) quickstart for an example." | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
@@ -96,8 +96,8 @@ | |||||
| "from google.genai.types import GenerateContentConfig\n", | ||||||
| "from google.colab import userdata\n", | ||||||
| "\n", | ||||||
| "GOOGLE_API_KEY=userdata.get('GOOGLE_API_KEY')\n", | ||||||
| "client = genai.Client(api_key=GOOGLE_API_KEY)" | ||||||
| "GEMINI_API_KEY=userdata.get('GEMINI_API_KEY')\n", | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency and adherence to the Google Python Style Guide (and PEP 8), please add a space around the assignment operator.1
Suggested change
Style Guide ReferencesFootnotes
|
||||||
| "client = genai.Client(api_key=GEMINI_API_KEY)" | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -166,7 +166,7 @@ | |||||
| "id": "SAvjxTybuWw-" | ||||||
| }, | ||||||
| "source": [ | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GOOGLE_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see the [Authentication](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Authentication.ipynb) quickstart for an example." | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GEMINI_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see the [Authentication](https://github.com/google-gemini/cookbook/blob/main/quickstarts/Authentication.ipynb) quickstart for an example." | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
@@ -178,8 +178,8 @@ | |||||
| "outputs": [], | ||||||
| "source": [ | ||||||
| "from google.colab import userdata\n", | ||||||
| "GOOGLE_API_KEY=userdata.get('GOOGLE_API_KEY')\n", | ||||||
| "genai.configure(api_key=GOOGLE_API_KEY)" | ||||||
| "GEMINI_API_KEY=userdata.get('GEMINI_API_KEY')\n", | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency and adherence to the Google Python Style Guide (and PEP 8), please add a space around the assignment operator.1
Suggested change
Style Guide ReferencesFootnotes
|
||||||
| "genai.configure(api_key=GEMINI_API_KEY)" | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -103,7 +103,7 @@ | |||||
| "source": [ | ||||||
| "### Setup your API key\n", | ||||||
| "\n", | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GOOGLE_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see [Authentication](../quickstarts/Authentication.ipynb) for an example." | ||||||
| "To run the following cell, your API key must be stored it in a Colab Secret named `GEMINI_API_KEY`. If you don't already have an API key, or you're not sure how to create a Colab Secret, see [Authentication](../quickstarts/Authentication.ipynb) for an example." | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
@@ -116,7 +116,7 @@ | |||||
| "source": [ | ||||||
| "from google.colab import userdata\n", | ||||||
| "\n", | ||||||
| "GOOGLE_API_KEY=userdata.get('GOOGLE_API_KEY')" | ||||||
| "GEMINI_API_KEY=userdata.get('GEMINI_API_KEY')" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For consistency and adherence to the Google Python Style Guide (and PEP 8), please add a space around the assignment operator.1
Suggested change
Style Guide ReferencesFootnotes
|
||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
@@ -163,7 +163,7 @@ | |||||
| }, | ||||||
| "outputs": [], | ||||||
| "source": [ | ||||||
| "client = genai.Client(api_key=GOOGLE_API_KEY)" | ||||||
| "client = genai.Client(api_key=GEMINI_API_KEY)" | ||||||
| ] | ||||||
| }, | ||||||
| { | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For consistency and adherence to the Google Python Style Guide (and PEP 8), please add a space around the assignment operator.1
Style Guide References
Footnotes
The repository's style guide refers to the Google Python Style Guide, which recommends using spaces around operators for better readability. This is a standard convention in Python. ↩