cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

Gemini 2.0 Flash structured output value repetition and missing fields

Open AadiSharma49 opened this issue 9 months ago • 2 comments

Description of the bug:

Bug relates to repetitive values and missing fields in the structured output of Gemini 2.0 Flash.

{ "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "UkLWZg": { "type": "string" }, "gbHJdm": { "type": "string" }, "EfhxLZ": { "type": "array", "items": { "type": "string" } }, "VqXmZF": { "type": "string" }, "uw2YK1": { "type": "integer" } } } } } }

AadiSharma49 avatar Mar 09 '25 06:03 AadiSharma49

Looks similar to this

Can be solved via @felixvor's solution :

use the `required` tag

Swini27 avatar Mar 10 '25 08:03 Swini27

Marking this issue as stale since it has been open for 14 days with no activity. This issue will be closed if no further activity occurs.

github-actions[bot] avatar Jun 27 '25 22:06 github-actions[bot]

This issue was closed because it has been inactive for 27 days. Please post a new issue if you need further assistance. Thanks!

github-actions[bot] avatar Jul 11 '25 22:07 github-actions[bot]