I am developing an application using the Gemini API.
I need information about HTTP status codes and JSON responses when the model stops generating tokens for following reasons in order to add error handling, but I can’t find this information anywhere.
Would anyone happen to know about this?
FinishReason
BLOCKLIST,PROHIBITED_CONTENT,SPII