Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add sample for JSON controlled generation #398

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

Merged

Conversation

shilpakancharla
Copy link
Collaborator

Description of the change

Add sample code for JSON mode.

@github-actions github-actions bot added status:awaiting review PR awaiting review from a maintainer component:python sdk Issue/PR related to Python SDK labels Jun 26, 2024
from absl.testing import absltest

import google.generativeai as genai
import typing_extensions as typing
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's leave out genai, but how about we put any other imports inside the example:

import typing_extensions as typing

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup, will include this in the next PR just to approve this for now

@shilpakancharla shilpakancharla merged commit 3e281e7 into google-gemini:main Jun 26, 2024
1 check passed
@github-actions github-actions bot removed the status:awaiting review PR awaiting review from a maintainer label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:python sdk Issue/PR related to Python SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants