HanaokaYuzu / Gemini-API

✨ An elegant async Python wrapper for Google Gemini web app
https://pypi.org/project/gemini-webapi/
GNU Affero General Public License v3.0
134 stars 19 forks source link

Failed to generate contents #21

Closed foremtehan closed 2 weeks ago

foremtehan commented 2 weeks ago

I occasionally receive this error:

Failed to generate contents. Invalid response data received. Client will try to re-initialize on next request.

is it possible to debug it ?

HanaokaYuzu commented 2 weeks ago

Completely eliminating the error is challenging because the response structure is now always consistent. The latest update increases the max retries to 2, which should reduce the error frequency.