Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 26f271e

Browse files
committedJul 22, 2024·
Add faq for github rate limit
1 parent 6d3043d commit 26f271e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎docs/docs/09-faqs.md

+7
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,10 @@ This tells the LLM (by way of a [system message](https://platform.openai.com/doc
5353

5454
This context also automatically shares the `sys.ls`, `sys.read`, and `sys.write` tools with the tool that is using it as a context. This is because if a tool intends to interact with the workspace, it minimally needs these tools.
5555

56+
### I'm hitting GitHub's rate limit for unauthenticated requests when using GPTScript.
57+
58+
By default, GPTScript makes unauthenticated requests to GitHub when pulling tools. Since GitHub's rate limits for unauthenticated requests are fairly low, running into them when developing with GPTScript is a common issue. To avoid this, you can get GPTScript to make authenticated requests -- which have higher rate limits -- by setting the `GITHUB_AUTH_TOKEN` environment variable to your github account's PAT (Personal Access Token).
59+
If you're already authenticated with the `gh` CLI, you can use its token by running:
60+
```bash
61+
export GITHUB_AUTH_TOKEN="$(gh auth token)"
62+
```

0 commit comments

Comments
 (0)
Please sign in to comment.