gptscript icon indicating copy to clipboard operation
gptscript copied to clipboard

github rate limit

Open lukemarsden opened this issue 9 months ago • 2 comments

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?

lukemarsden avatar May 04 '24 07:05 lukemarsden

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

sangee2004 avatar May 06 '24 21:05 sangee2004

thanks! maybe add that to the readme?

lukemarsden avatar May 07 '24 05:05 lukemarsden

@sangee2004 is this in docs? could we put it in the FAQ if it isnt?

cjellick avatar Jul 11 '24 23:07 cjellick

It is not currently present in our docs. I will have it added to FAQ section.

sangee2004 avatar Jul 11 '24 23:07 sangee2004

We now have documentation for handling github rate limit issue in FAQ section - https://github.com/gptscript-ai/gptscript/pull/646

sangee2004 avatar Jul 24 '24 19:07 sangee2004