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

Add a notebook test script. #187

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Function calling cnfig - Use standard userdata cell
  • Loading branch information
MarkDaoust committed May 30, 2024
commit 09d6302dd5ae0356040ed14c1b7227ad8acb3257
13 changes: 11 additions & 2 deletions quickstarts/Function_calling_config.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@
"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."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"id": "34bf10124280"
},
"outputs": [],
"source": [
"import google.generativeai as genai"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -86,8 +97,6 @@
"outputs": [],
"source": [
"from google.colab import userdata\n",
"import google.generativeai as genai\n",
"\n",
"genai.configure(api_key=userdata.get(\"GOOGLE_API_KEY\"))"
]
},
Expand Down