I am playing with Gemini Batch API with gemini-2.5-flash-lite model for transforming unstructured document from OCR results into formalized CSV files.
But for some reason I am getting errors that cannot be reproduced in AI Studio or Gemini chat which doesn’t make sense to me because I have function calling turned off and thinking budget set to 0:
- Citation related:
[{'license': '', 'endInde...', 'startIndex': 53696}] - Internal Error Code 13:
{'message': 'An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting', 'code': 13}
I found a comment on github saying switching to streaming mode solved the first issue. So I am wondering if these errors are Batch API specific and how to avoid them?
Also found some similar complaints about citation: