https://discord.gg/botpress logo
Google AI error: You exceeded your current quota, ...
# 🤝help
c
[google-ai] Google AI error: {"error":{"code":429,"message":"You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits. To monitor your current usage, head to: https://ai.dev/usage?tab=rate-limit. \n* Quota exceeded for metric: generativelanguage.googleapis.com/generate_requests_per_model_per_day, limit: 0","status":"RESOURCE_EXHAUSTED","details":[{"@type":"type.googleapis.com/google.rpc.Help","links":[{"description":"Learn more about Gemini API quotas","url":"https://ai.google.dev/gemini-api/docs/rate-limits"}]},{"@type":"type.googleapis.com/google.rpc.QuotaFailure","violations":[{"quotaMetric":"generativelanguage.googleapis.com/generate_requests_per_model_per_day","quotaId":"GenerateRequestsPerDayPerProjectPerModel"}]}]}} Is this error message my fault? I only sent a test message with Execute Code. There is no other traffic in the chatbot.
w
Although they have the best models in my opinion, it makes google ai really unreliable
g
429 is rate limit issues? are you making simultaneous requests or something? if youre calling the api from execute code, add exponential backoff or some other rate limiting technique,
Copy code
if (error.code === 429) {
// set timeout for 1 second and try again, if error 429 again wait two seconds and try again, and so on.
}
if youre using autonomous node not calling it yourself, you cant do anything about it unfortunately, its on BP to implement.
2 Views