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 code execution example. #223

Merged
merged 2 commits into from
Jun 27, 2024
Merged

Conversation

MarkDaoust
Copy link
Contributor

No description provided.

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:quickstarts Issues/PR referencing quickstarts folder labels Jun 27, 2024
@random-forests
Copy link
Member

random-forests commented Jun 27, 2024

Ah nice! Thanks Mark!

Nits, remove these lines:

 #client_options={'api_endpoint':'autopush-generativelanguage.sandbox.googleapis.com'})
 # or pass the proto object
model = genai.GenerativeModel(model_name='gemini-1.5-flash', tools=[genai.protos.CodeExecution()])

Otherwise really neat.

quickstarts/Code_Execution.ipynb Show resolved Hide resolved
quickstarts/Code_Execution.ipynb Show resolved Hide resolved
quickstarts/Code_Execution.ipynb Show resolved Hide resolved
quickstarts/Code_Execution.ipynb Show resolved Hide resolved
@MarkDaoust MarkDaoust merged commit 15f33a1 into google-gemini:main Jun 27, 2024
3 checks passed
@MarkDaoust
Copy link
Contributor Author

Nits, remove these lines:

Done #224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:quickstarts Issues/PR referencing quickstarts folder status:awaiting review PR awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants