使用体验:反向代理太慢了,一个模型要下1mol时间。
最后还是直接在服务器上配置直接使用代理。用本地代理实现服务器代理
假设服务器端的代理要放在2333端口上,查看本地clash端口为7890

使用管理员权限开启本地终端,其中2333和7890的位置根据你的自身情况适配
1 | ssh -R 2333:127.0.0.1:7890 username@ip |

服务器端输入1
2export http_proxy=http://127.0.0.1:2333
export https_proxy=http://127.0.0.1:2333
完成设置 并使用1
curl cip.cc

本地终端配置代理
对于 windows 系统 在终端输入1
2set http_proxy=http://127.0.0.1:4780
set https_proxy=http://127.0.0.1:4780
然后使用1
curl cip.cc
