gptscript-ai / gptscript

Build AI assistants that interact with your systems
https://gptscript.ai
Apache License 2.0
2.78k stars 245 forks source link

github rate limit #315

Open lukemarsden opened 2 months ago

lukemarsden commented 2 months ago

after using gptscript for a while with github-hosted tools, I start hitting this:

2024/05/04 08:38:36 failed resolving github.com/gptscript-ai/search/duckduckgo at ./get-blog-posts-search.gpt: failed to GitHub commit of gptscript-ai/search at HEAD: 403 Forbidden {"message":"API rate limit exceeded for <my-ip>. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}

At first I thought this was duckduckgo rate limiting me, but then I realised it was github when resolving the module itself!

Can we cache the result of whatever we're using the github API for?

sangee2004 commented 2 months ago

One way to work around the problem is to set the following env variable - GITHUB_AUTH_TOKEN

lukemarsden commented 2 months ago

thanks! maybe add that to the readme?