Skip to content

Commit

Permalink
chore: update docs with proxy infos
Browse files Browse the repository at this point in the history
  • Loading branch information
tbckr committed Oct 29, 2023
1 parent d68ad8b commit 3cc4e79
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/usage/proxy.md
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?
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,6 @@ nav:
- Chat: 'usage/chat.md'
- Docker: 'usage/docker.md'
- Personas: 'usage/personas.md'
- Proxy Support: 'usage/proxy.md'
- Configuration: 'configuration.md'
- Examples: 'examples.md'

0 comments on commit 3cc4e79

Please sign in to comment.