Skip to content
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

Chatgpt 代理问题 #50

Closed
evan-xie opened this issue Mar 8, 2023 · 4 comments
Closed

Chatgpt 代理问题 #50

evan-xie opened this issue Mar 8, 2023 · 4 comments

Comments

@evan-xie
Copy link

evan-xie commented Mar 8, 2023

我机器开了梯子的情况下网页可以打开https://api.openai.com/v1/chat/completions,但是回答依然是
ChatGPT出错了,Err:Post "https://api.openai.com/v1/chat/completions": dial tcp 199.16.158.182:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
是必须开做一个代理页面?

@yqchilde
Copy link
Owner

yqchilde commented Mar 8, 2023

程序没走代理,尝试全局
或者本地搭一个代理,用set chatgpt proxy https://你的地址/v1
本地代理项目可参考 https://github.com/yqchilde/openai-proxy

@MQpeng
Copy link

MQpeng commented Mar 10, 2023

#57 同遇这个问题,开了一个PR

@evan-xie
Copy link
Author

使用了全局依然没有解决,使用了proxifier加代理
image

@yqchilde
Copy link
Owner

两种方式解决这个问题:

  1. 利用反向代理,代理一下api.openai.com这个网站,比如你代理到api.abc.com,那你可以使用指令 set chatgpt proxy http://api.abc.com/v1
  2. wxbot所在机器你开了代理,这时候你可以使用网络代理,比如clash的端口是7890,那你可以使用指令 set chatgpt http_proxy http://127.0.0.1:7890,下次访问openai网站时会走你的代理去访问,如果不是clash,其他软件同理

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants