This repository was archived by the owner on Dec 16, 2025. It is now read-only.
Adding JSON schema curl samples#434
Merged
MarkDaoust merged 4 commits intogoogle-gemini:mainfrom Jul 23, 2024
Merged
Conversation
MarkDaoust
suggested changes
Jul 9, 2024
Collaborator
MarkDaoust
left a comment
There was a problem hiding this comment.
The response schema is in the text right now, it should be in the GenerationCongif.response_schema.
If you ever need a shortcut to generate the json you can for a request you can run it in the python SDK and intercept it(in debug mode) then type(r).to_dict(r, use_integers_for_enums=False)
json_no_schema working Fix quoting.
MarkDaoust
reviewed
Jul 23, 2024
Change-Id: I29f337ddf8ee9ceff628111a9124cb4e5141706b
MarkDaoust
approved these changes
Jul 23, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.