Skip to content

Commit

Permalink
Move Python function calling tutorial (#376)
Browse files Browse the repository at this point in the history
* Move Python function calling tutorial

* nbfmt
  • Loading branch information
pcoet authored Apr 19, 2024
1 parent d216731 commit 5e876c2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
"source": [
"<table class=\"tfo-notebook-buttons\" align=\"left\">\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://ai.google.dev/tutorials/function_calling_python_quickstart\"><img src=\"https://ai.google.dev/static/site-assets/images/docs/notebook-site-button.png\" height=\"32\" width=\"32\" />View on ai.google.dev</a>\n",
" <a target=\"_blank\" href=\"https://ai.google.dev/gemini-api/docs/function-calling/python\"><img src=\"https://ai.google.dev/static/site-assets/images/docs/notebook-site-button.png\" height=\"32\" width=\"32\" />View on ai.google.dev</a>\n",
" </td>\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google/generative-ai-docs/blob/main/site/en/tutorials/function_calling_python_quickstart.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" <a target=\"_blank\" href=\"https://colab.research.google.com/github/google/generative-ai-docs/blob/main/site/en/gemini-api/docs/function-calling/python.ipynb\"><img src=\"https://www.tensorflow.org/images/colab_logo_32px.png\" />Run in Google Colab</a>\n",
" </td>\n",
" <td>\n",
" <a target=\"_blank\" href=\"https://github.com/google/generative-ai-docs/blob/main/site/en/tutorials/function_calling_python_quickstart.ipynb\"><img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on GitHub</a>\n",
" <a target=\"_blank\" href=\"https://github.com/google/generative-ai-docs/blob/main/site/en/gemini-api/docs/function-calling/python.ipynb\"><img src=\"https://www.tensorflow.org/images/GitHub-Mark-32px.png\" />View source on GitHub</a>\n",
" </td>\n",
"</table>"
]
Expand Down Expand Up @@ -185,13 +185,13 @@
"try:\n",
" # Used to securely store your API key\n",
" from google.colab import userdata\n",
" \n",
"\n",
" # Or use `os.getenv('API_KEY')` to fetch an environment variable.\n",
" GOOGLE_API_KEY=userdata.get('GOOGLE_API_KEY')\n",
"except ImportError:\n",
" import os\n",
" GOOGLE_API_KEY = os.environ['GOOGLE_API_KEY']\n",
" \n",
"\n",
"genai.configure(api_key=GOOGLE_API_KEY)"
]
},
Expand Down Expand Up @@ -761,7 +761,7 @@
],
"metadata": {
"colab": {
"name": "function_calling_python_quickstart.ipynb",
"name": "python.ipynb",
"toc_visible": true
},
"google": {
Expand Down

0 comments on commit 5e876c2

Please sign in to comment.