Closed dondonw1 closed 1 year ago
doesn't work. I had to set export https_proxy=socks5://ip:prot
in ~/.bashrc
How is this done in the new version? I saw that client.py got removed with PR https://github.com/TheR1D/shell_gpt/pull/414 and the export https_proxy=socks5://ip:port does not work for me...
In case it is useful for somebody, socks5 proxy can be added by this way:
Edit client.py: ~/.local/lib/python3.x/site-packages/sgpt$ nano client.py
By adding below code:
import socks import socket
Define the proxy server URL and port number
proxy_host = ''
proxy_port =
proxy_username = ''
proxy_password = ''
Set up the SOCKS5 proxy with authentication
socks.set_default_proxy(socks.SOCKS5, proxy_host, proxy_port, username=proxy_username, password=proxy_password) socket.socket = socks.socksocket