Skip to content
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

Update Authentication_with_OAuth.ipynb #95

Merged
merged 2 commits into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions quickstarts/Authentication_with_OAuth.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
"source": [
"## Set up application default credentials\n",
"\n",
"In this quickstart we use [application default credentials](https://cloud.google.com/docs/authentication/application-default-credentials) to authenticate."
"In this quickstart you will use [application default credentials](https://cloud.google.com/docs/authentication/application-default-credentials) to authenticate."
]
},
{
Expand Down Expand Up @@ -228,7 +228,7 @@
"source": [
"!gcloud auth application-default login \\\n",
" --no-browser --client-id-file client_secret.json \\\n",
" --scopes='https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/generative-language.tuning,https://www.googleapis.com/auth/generative-language.retriever'\n"
" --scopes https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/generative-language.tuning,https://www.googleapis.com/auth/generative-language.retriever\n"
]
},
{
Expand All @@ -237,7 +237,7 @@
"id": "TWTBztxTRYb5"
},
"source": [
"The specific `scopes` you need depends on the API you are using. For example, looking at the API reference for [`tunedModels.create`](https://ai.google.dev/api/rest/v1beta/tunedModels/create#authorization-scopes) we see:\n",
"The specific `scopes` you need depends on the API you are using. For example, looking at the API reference for [`tunedModels.create`](https://ai.google.dev/api/rest/v1beta/tunedModels/create#authorization-scopes), you will see:\n",
"\n",
"> Requires one of the following OAuth scopes:\n",
">\n",
Expand Down Expand Up @@ -285,7 +285,7 @@
"id": "r8GgGmTrUCR2"
},
"source": [
"Let's do a quick test. Note that we did not set an API key using `genai.configure()`!"
"Let's do a quick test. Note that you did not set an API key using `genai.configure()`!"
]
},
{
Expand Down Expand Up @@ -318,7 +318,7 @@
"source": [
"## Making authenticated REST calls from Colab\n",
"\n",
"In general, we recommend using the Python SDK to interact with the Gemini API when possible. This example shows how to make OAuth authenticated REST calls from Python for debugging or testing purposes. It assumes you have already set application default credentials from the Quickstart."
"In general, you should use the Python SDK to interact with the Gemini API when possible. This example shows how to make OAuth authenticated REST calls from Python for debugging or testing purposes. It assumes you have already set application default credentials from the Quickstart."
]
},
{
Expand Down
Loading