jina-ai / jina-ai/node-DeepResearch
Gemini error 429 Too Many Requests. Resource has been exhausted
- Dominant language
- TypeScript
- Stars
- 5.2k
- Forks
- 461
- PR merge metrics
- No merged PRs in 30d
Description
I'm getting a Gemini error 429 on the free plan.
Seems like the request limit per model per minute for a project in the free tier is 15.
Currently it seems like there is no way to cap this in the script. Any suggestions on how to get around this?
```
Error in deduplication analysis: GoogleGenerativeAIFetchError: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [429 Too Many Requests] Resource has been exhausted (e.g. check quota).
at handleResponseNotOk (~/dev/node-DeepResearch/node_modules/@google/generative-ai/dist/index.js:414:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async makeRequest (~/dev/node-DeepResearch/node_modules/@google/generative-ai/dist/index.js:387:9)
at async generateContent (~/dev/node-DeepResearch/node_modules/@google/generative-ai/dist/index.js:832:22)
at async dedupQueries (~/dev/node-DeepResearch/src/tools/dedup.ts:91:20)
at async getResponse (~/dev/node-DeepResearch/src/agent.ts:505:26)
at async main (~/dev/node-DeepResearch/src/agent.ts:744:7) {
status: 429,
statusText: 'Too Many Requests',
errorDetails: undefined
}
GoogleGenerativeAIFetchError: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [429 Too Many Requests] Resource has been exhausted (e.g. check quota).
at handleResponseNotOk (~/dev/node-DeepResearch/node_modules/@google/generative-ai/dist/index.js:414:11)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at async makeRequest (~/dev/node-DeepResearch/node_modules/@google/generative-ai/dist/index.js:387:9)
at async generateContent (~/dev/node-DeepResearch/node_modules/@google/generative-ai/dist/index.js:832:22)
at async dedupQueries (~/dev/node-DeepResearch/src/tools/dedup.ts:91:20)
at async getResponse (~/dev/node-DeepResearch/src/agent.ts:505:26)
at async main (~/dev/node-DeepResearch/src/agent.ts:744:7) {
status: 429,
statusText: 'Too Many Requests',
errorDetails: undefined
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.