-
-
Notifications
You must be signed in to change notification settings - Fork 386
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
机器人请求失败!!! #153
Comments
doucker容器的ifconfig输出结果如下
|
时时运行输出的日志如下所示
感觉问题就出在请求api.openai.com接口不通?服务器用的国内阿里云,端口都开放了,挂的梯子是SSR开的socks5代理 |
看这个报错 看起来是你容器连不到你容器外的代理端口 |
HTTP_PROXY="socks5h://host.docker.internal:1080"改成这样吗 |
你这代理不支持 http 代理吗? |
|
|
看起来你的阿里云服务器买的是国内的吧,你需要在服务器上开启代理 |
以docker网桥模式启动, |
最新的readme已做了说明: |
docker run -itd --name chatgpt -p 8090:8090 -e APIKEY=sk-Sq5Iys65nLi6ECu72C44T3BlbkFJw4****="" -e MODEL="gpt-3.5-turbo" -e SESSION_TIMEOUT=600 -e HTTP_PROXY="socks5h://172.17.0.1:1080" -e DEFAULT_MODE="单聊" -e MAX_REQUEST=0 -e PORT=8090 -e SERVICE_URL="http://121.196.237.40:8090" -e CHAT_TYPE="0" --restart=always dockerproxy.com/eryajf/chatgpt-dingtalk:latest |
作者刚才更新了,重新拉取镜像部署 |
再拉取下最新镜像,另外注意看下readme的启动命令说明,最新版本添加了几个环境变量 |
|
key不要用明文写出来啊 |
部署的阿里云服务器,开启了sockes5代理端口是1080看看下面的错误是什么原因导致的!!!
请求openai失败了,错误信息:Post "https://api.openai.com/v1/chat/completions": proxyconnect tcp: dial tcp 172.17.0.1:1080: connect: connection refused
@daryl
docker-compose.yml如下面所示
开启代理是sockes5代理是没有问题的!!!
The text was updated successfully, but these errors were encountered: