I am running through some data using the Google Bard API using a for loop that pushes a different sentence through for a total of 120 times. I initially inserted a random time lag after each point (1 to 10 seconds, randomly chosen) in the for-loop so that it’s hopefully not getting blocked by Google. However, I ran into a timeout and therefore removed the time lag. Now, I’m getting a 429 response.
My questions are:
- When this happens, is there any way in my code that I can save what’s already been run? So that if there’s an error, my list of Bard responses (what’s there so far) can be saved? -Does anyone know the limit per second/hour for Bard? I looked, but I don’t see any documentation…mostly probably because they haven’t created their own API. But shouldn’t their site still indicate what will give a 429? My error only raises an Exception indicating a 429 response, but no other details.
Thanks!
source https://stackoverflow.com/questions/77591240/429-response-with-google-bard
Comments
Post a Comment