googleapis / googleapis/python-aiplatform
Gemini controlled generation no longer supports schema fields that previously worked
- 主要语言
- Python
- 星标
- 905
- 派生
- 465
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 44
描述
I am using Gemini's controlled generation function in one of my projects.
I use an OpenAPI schema with Vertex AI fields.
For one attribute, I had the following definition:
`{"type": "string", "format": "date", "example": "2015-12-04"}` which worked a few weeks ago, but currently results in:
`InvalidArgument : 400 Unable to submit request because one or more response schemas specified unsupported field example.`
If I remove the fields `format` and `example`, the whole generation works.
I cannot find release notes that would describe a change in this anywhere, did the support for this change? Both fields are specified in the Vertex AI Schema docs: https://cloud.google.com/vertex-ai/docs/reference/rest/v1/Schema,
but on the Controlled Generation page, they are largely limited: http://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/control-generated-output#considerations
贡献指南
调研方向
首先,使用包含 format 和 example 的 schema 重现报告中的受控生成请求。阅读 Vertex AI Schema 参考文档和 Controlled Generation 注意事项,然后确定这些字段是否受支持,以及预期需要进行哪些兼容性或文档更改。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- google-cloud, python
- 领域
- ai, cloud
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100