How to use Proxy in the chatgpt-python?
houzhong opened this issue · comments
houzhong commented
Some countries like China, Hk, They need proxy access to chatgpt
How to use a proxy in chatgpt-python like socks5, http proxy and so on.
Coming commented
Rodrigo Martínez commented
Hi @houzhong,
While this is not implemented in the code, you can try setting the following environment variables before using the library:
export HTTP_PROXY="http://<user>:<pass>@<proxy>:<port>"
export HTTPS_PROXY="http://<user>:<pass>@<proxy>:<port>"