-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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国内被墙问题(已解决) #321
Comments
api被墙了 |
是的,国内api被墙了有没有什么解决方法,(国外服务器除外) |
老哥说的用hk代理 我试了还是不行 |
阿里云,腾讯云均已屏蔽api直接接口,需要在服务器端配置代理,比如调用requests 库来发送 HTTP 请求 |
网络不通问题在 #310 讨论吧 |
阿里云,腾讯云购买国外服务器是否可以? |
@baichisong 你这个问题是openai没有更新 |
您好,我按照教程配置到了“下载 clash 配置文件”,接下来是配置
了么,这个代理服务器ip端口是在网上找个免费的测试一下吗? |
我用的就是新加坡的机器,不用再翻墙了吧 |
已经解决,是没有升级openapi 看git代码最新gpt3.5的更新说明里面有。
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年03月03日 19:33 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [zhayujie/chatgpt-on-wechat] ChatGPT国内被墙问题(已解决) (Issue #321) |
拉取最新的 chatgpt3.5项目: 1、我网络是新加坡节点, 2、配置如下:
还是报错: [ERROR][2023-03-03 09:47:44][chat_gpt_bot.py:67] - module 'openai' has no attribute 'ChatCompletion' Traceback (most recent call last): File "C:\application\chatgpt-on-wechat\bot\chatgpt\chat_gpt_bot.py", line 43, in reply_text response = openai.ChatCompletion.create( AttributeError: module 'openai' has no attribute 'ChatCompletion' [INFO][2023-03-03 09:47:44][wechat_channel.py:103] - [WX] sendMsg=[bb] 请再问我一次吧, ***@***.***
您好,有解决吗,我也是使用的腾讯云新加坡的服务器,应该不会墙吧,但是扫码后提示 的这个
Traceback (most recent call last): File "app.py", line 21, in <module> channel.startup() File "/www/wwwroot/ChatGpt/bot-on-anything/channel/wechat/wechat_channel.py", line 38, in startup itchat.auto_login(enableCmdQR=2) File "/usr/local/python3.7/lib/python3.7/site-packages/itchat/components/register.py", line 36, in auto_login loginCallback=loginCallback, exitCallback=exitCallback) File "/usr/local/python3.7/lib/python3.7/site-packages/itchat/components/login.py", line 55, in login status = self.check_login() File "/usr/local/python3.7/lib/python3.7/site-packages/itchat/components/login.py", line 141, in check_login if process_login_info(self, r.text): File "/usr/local/python3.7/lib/python3.7/site-packages/itchat/components/login.py", line 183, in process_login_info core.loginInfo['wxsid'] = core.loginInfo['BaseRequest']['Sid'] = cookies["wxsid"] KeyError: 'wxsid'
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
感谢,已解决
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年03月03日 18:44 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [zhayujie/chatgpt-on-wechat] ChatGPT国内被墙问题(已解决) (Issue #321) |
@baichisong 你这个问题是openai没有更新
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
不知道为什么自己和自己聊天是不行的 |
请问 /etc/profile 需要配置代理服务器的ip和端口,这个怎么理解?应该从哪里获取填的地址 |
想问下有没有查水表的风险 |
香港服务器可以访问openai么 |
python3.9版本在开了代理的情况下会运行报错,请降低urllib3模块的版本即可,pip install urllib3==1.25.11 |
你直接按照代码下面提示升级openai就好了,那个升级openai命令没说明版本
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 日期 | 2023年03月04日 10:46 |
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | Re: [zhayujie/chatgpt-on-wechat] ChatGPT国内被墙问题(已解决) (Issue #321) |
拉取最新的 chatgpt3.5项目: 1、我网络是新加坡节点, 2、配置如下:
还是报错: [ERROR][2023-03-03 09:47:44][chat_gpt_bot.py:67] - module 'openai' has no attribute 'ChatCompletion' Traceback (most recent call last): File "C:\application\chatgpt-on-wechat\bot\chatgpt\chat_gpt_bot.py", line 43, in reply_text response = openai.ChatCompletion.create( AttributeError: module 'openai' has no attribute 'ChatCompletion' [INFO][2023-03-03 09:47:44][wechat_channel.py:103] - [WX] sendMsg=[bb] 请再问我一次吧, ***@***.***
您好,有解决吗,我也是使用的腾讯云新加坡的服务器,应该不会墙吧,但是扫码后提示 的这个 Traceback (most recent call last): File "app.py", line 21, in <module> channel.startup() File "/www/wwwroot/ChatGpt/bot-on-anything/channel/wechat/wechat_channel.py", line 38, in startup itchat.auto_login(enableCmdQR=2) File "/usr/local/python3.7/lib/python3.7/site-packages/itchat/components/register.py", line 36, in auto_login loginCallback=loginCallback, exitCallback=exitCallback) File "/usr/local/python3.7/lib/python3.7/site-packages/itchat/components/login.py", line 55, in login status = self.check_login() File "/usr/local/python3.7/lib/python3.7/site-packages/itchat/components/login.py", line 141, in check_login if process_login_info(self, r.text): File "/usr/local/python3.7/lib/python3.7/site-packages/itchat/components/login.py", line 183, in process_login_info core.loginInfo['wxsid'] = core.loginInfo['BaseRequest']['Sid'] = cookies["wxsid"] KeyError: 'wxsid'
我用的是亚马逊云,新加坡节点的服务器,我解决了是openai没有升级,最新gpt3.5代码下面有更新说明,我没执行导致的,执行完后就可以了
请问你的openai依赖版本是多少,我升级了openai版本到0.27.0,也是提示你这个错误
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
网络问题解决:#351 |
提示说错误的API但实际上API没错,请问该如何处理啊 |
2023-06-04,购买阿里云美国节点window server服务器,尝试登录chatgpt,被提示 IP被限制,说明阿里云海外服务器也被墙了。 |
这个翻墙方案没走通 |
前置确认
经过排查发现是国内网络已经无法调用,
暂时无解决方案解决思路: 使用国外服务器 或者 使用代理(免费)
解决方案如下: (使用代理)
本人使用 阿里云服务器搭建国外代理环境:
自建教程: https://w1.v2free.top/auth/register?code=7np0
参考教程: https://github.com/bannedbook/fanqiang
根据自己使用的操作系统选择搭建的流程.我使用的Linux操作系统,亲测有效
https://github.com/bannedbook/fanqiang/tree/master/linux
环境变量添加如下:
希望此处理方法能够对大家有帮助.
The text was updated successfully, but these errors were encountered: