Gemini 2.5 structured output - "response 'ny'"

When we request anything in JSON output from the Gemini 2.5 API, the first line is always ‘ny’. Could someone help us identify the problem?

3 Likes

Dup of Gemini 2.5 Pro inserting random text and format tokens around json responses

1 Like

Same here. Gemini 2..5. Pro Preview 03-25 Model in inserting ‘ny’ before returning a structured object. It is also inserting unwanted apostrophes. Strangely this was not happening last week with the same prompt.