szczyglis-dev / py-gpt

Desktop AI Assistant powered by o1, GPT-4, GPT-4 Vision, Gemini, Claude, Llama 3, Bielik, DALL-E, Langchain, Llama-index, chat, vision, voice control, image generation and analysis, agents, command execution, file upload/download, speech synthesis and recognition, access to Web, memory, presets, assistants, plugins, and more. Linux, Windows, Mac.
https://pygpt.net
Other
614 stars 116 forks source link

proxy #72

Open mohammadhoseinazaddel opened 1 week ago

mohammadhoseinazaddel commented 1 week ago

i wanted to use proxy on it to connect through it but I got Exception: Using SOCKS proxy, but the 'socksio' package is not installed. Make sure to install httpx using pip install httpx[socks]. Type: ImportErrorMessage: Using SOCKS proxy, but the 'socksio' package is not installed. Make sure to install httpx using pip install httpx[socks]. Traceback: File "httpx_client.py", line 705, in init File "httpx_client.py", line 708, in File "httpx_client.py", line 762, in _init_proxy_transport File "httpx_transports\default.py", line 178, in init in windows desktop I set HTTP_PROXY=socks5://127.0.0.1:2080 and HTTsP_PROXY=socks5://127.0.0.1:2080 image

szczyglis-dev commented 1 week ago

In version 2.4.12 (2024-11-15):

mohammadhoseinazaddel commented 1 week ago

In version 2.4.12 (2024-11-15):

  • httpx-socks has been integrated into the compiled versions (Windows and Linux) - enabling support for HTTP/SOCKS proxies.
  • proxy settings have been added under: Config -> Settings -> Proxy URL, or you can use the environment variables: HTTP_PROXY, HTTPS_PROXY.

Thnk you man thank youuu i will try it soon and give you feedback dor your attempt