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

Keep required fields spec in the structured-output schema #643

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ravwojdyla
Copy link

@ravwojdyla ravwojdyla commented Nov 29, 2024

Please see the context in #642. I don't think this blanket change is acceptable, but IMHO neither is the current blanket removal of required field. I'm looking forward to directions how to properly support required fields in the structured-output, given the current state of the Gemini services.

I'm happy to make any required changes to this PR.

@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 Nov 29, 2024
@ravwojdyla ravwojdyla changed the title Keep required fields info in the structured-output schema Keep required fields spec in the structured-output schema Nov 29, 2024
@ravwojdyla
Copy link
Author

ravwojdyla commented Nov 29, 2024

I will note that in my specific case, for a nested Pydantic schema, the Gemini API worked fine with this patch. So I wonder if the change from #309 is still required and if yes in what cases?

@Aungyehtut8
Copy link

Please see the context in #642. I don't think this blanket change is acceptable, but IMHO neither is the current blanket removal of required field. I'm looking forward to directions how to properly support required fields in the structured-output, given the current state of the Gemini services.

I'm happy to make any required changes to this PR.

No

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 status:awaiting review PR awaiting review from a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants