-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Proxy Support | ||
|
||
SGPT supports proxying requests through SOCKS and HTTP proxies. This is useful for environments where direct internet | ||
access is not allowed, but proxying is allowed. | ||
|
||
You can configure SGPT to use a proxy using the `http_proxy` and `https_proxy` environment variables. | ||
|
||
```bash | ||
$ export http_proxy=http://proxy.example.com:8080 | ||
$ export https_proxy=http://proxy.example.com:8080 | ||
$ sgpt "say hello" | ||
Hello! How can I assist you today? | ||
``` | ||
|
||
Exceptions can be made for specific hosts by setting the `no_proxy` environment variable. | ||
|
||
```bash | ||
$ export no_proxy=example.com | ||
$ sgpt "say hello" | ||
Hello! How can I assist you today? | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters