Skip to content

Commit

Permalink
Cleanup. (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkDaoust committed Jun 27, 2024
1 parent 15f33a1 commit fe16d66
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions quickstarts/Code_Execution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@
"outputs": [],
"source": [
"from google.colab import userdata\n",
"genai.configure(api_key=userdata.get('GOOGLE_API_KEY'))\n",
" #client_options={'api_endpoint':'autopush-generativelanguage.sandbox.googleapis.com'})"
"genai.configure(api_key=userdata.get('GOOGLE_API_KEY'))"
]
},
{
Expand Down Expand Up @@ -194,10 +193,7 @@
}
],
"source": [
"model = genai.GenerativeModel(model_name='gemini-1.5-flash', tools=\"code_execution\")\n",
"\n",
"# or pass the proto object\n",
"model = genai.GenerativeModel(model_name='gemini-1.5-flash', tools=[genai.protos.CodeExecution()])"
"model = genai.GenerativeModel(model_name='gemini-1.5-flash', tools=\"code_execution\")"
]
},
{
Expand Down

0 comments on commit fe16d66

Please sign in to comment.