Hello,
the grounded response structure as documented at A grounded response is intact but segment end and start indices do not align with response text. In every case that I ran with model gemini-2.5-pro-exp-03-25
resulted in most indices beyond the length of the response.text string. The indices almost seemed to have a len(response.text) offset.
Hi @pcolangelo . Apologies for the late response.
To help us reproduce, could you share a specific example of yours and the corresponding response where you observe this mis-alignment?
We’ve recently updated our models, and it’s possible this issue has already been addressed. Could you please try running your query once more with the latest available model version and let us know if the issue still persist?
Thank you!