Skip to content

Commit 1b68119

Browse files
committed
Add faq for github rate limit
1 parent 671f0f0 commit 1b68119

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: docs/docs/09-faqs.md

+8
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,11 @@ 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+
61+
```bash
62+
export GITHUB_AUTH_TOKEN="$(gh auth token)"
63+
```

0 commit comments

Comments
 (0)