Gemini 2.5 Pro with empty response.text

Just adding
I am seeing the same issue. We manually call the API Content generation endpoint. We then format the response using the SDK (the same way SDK does)

              dict_response = await response.json()
              response_dict = _GenerateContentResponse_from_mldev(ApiClient(api_key=self.api_key), dict_response)

              return_value = GenerateContentResponse._from_response(response=response_dict, kwargs=payload)
              ApiClient(api_key=self.api_key)._verify_response(return_value)

We call the method from the sdk to generate response using SDK

But basically gemini has this issue where it is just returning empty content. It is very sporadic and super annoying. This issue has been around for months.