Adding a loop in case rate limits are reached or exceeded in initial run

#2
by Kingstonsmj - opened

Ran into a rate limiting bug when it tried to run it locally with my gemini API, so I added a few error handling statements, and it didn't happen again

Fixed API quota errors (429) by implementing:

  • Automatic retry logic with exponential backoff
  • 5-second delay between API calls to prevent rate limit hits
  • Error handling with user-friendly messages

This prevents the application from crashing when hitting Gemini API rate limits. (Description witten by AI casue I'm not good with explaining stuff I do)

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment