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

Fix Gemini Response schema support #53

Open
LeonRuggiero opened this issue Jan 3, 2025 · 0 comments
Open

Fix Gemini Response schema support #53

LeonRuggiero opened this issue Jan 3, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@LeonRuggiero
Copy link
Contributor

Gemini models can be forced via configuration to output JSON.
They can also via configuration be forced to follow a specific schema.
The latter is broken, as it expects a internal format which is a subset of OpenAPI 3.0.
See docs: https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/control-generated-output#fields
However we are currently passing it a JSON schema, unmodified.

This is especially causing issues with more complicated schemas, I'm somewhat surprised how well this type mismatch works for simple schemas.

Should be made more robust.

@LeonRuggiero LeonRuggiero added the bug Something isn't working label Jan 3, 2025
@LeonRuggiero LeonRuggiero self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant