Hello, I am having the same issue with 2.5-Flash . After lot of testing I am still not sure what is the problem but I managed to remedy the issue to certain degree:
- The model could be overloaded so expect that you will have to send the request multiple times
- It is needed to enhance the prompt so the model understand what output to produce. With 2.0-Flash the model used to return raw text if the schema failed. But now, with 2.5 it looks like if the schema fails one will get 500 error.