fix(google): use responseJsonSchema for Gemini#15333
Conversation
|
Kage usage for this PR: This PR fixed #7689 by sending Gemini structured-output schemas as How Kage helped:
Why this matters for future sessions: Full contribution summary and Kage metrics: kage-core/Kage#8 |
| ? convertJSONSchemaToOpenAPISchema(responseFormat.schema) | ||
| : undefined, | ||
| (googleOptions?.structuredOutputs ?? true) && | ||
| (isVertexProvider |
There was a problem hiding this comment.
Without any necessary filtering, they have the same "responseJsonSchema" parameter.
Please refer to Vertex AI(linked to gemini-enterprise-agent-platform) for details.
In addition, please modify the convertJSONSchemaToOpenAPISchema function based on ai.google.dev to support more JSON schemas, so as to make this PR more necessary.
Sorry for that I am not a relevant contributor and thus cannot assist you in passing this PR.
|
Thank you for the pull request. Issue #7689 was closed as not planned. Closing this pull request. |
Summary
Fixes #7689.
Kage usage
Tests
Note: local verification emitted the repository Node engine warning because this shell runs Node v25.9.0 while the repo declares support for ^18/^20/^22/^24.