You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
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
本人使用 阿里云服务器搭建国外代理环境:
自建教程:
https://w1.v2free.top/auth/register?code=7np0
参考教程:
https://github.com/bannedbook/fanqiang
根据自己使用的操作系统选择搭建的流程.我使用的Linux操作系统,亲测有效
https://github.com/bannedbook/fanqiang/tree/master/linux
环境变量添加如下:
//编辑配置文件
vim /etc/profile
//在该配置文件的最后添加代理配置
export http_proxy='http://ip:port' //代理服务器ip地址和端口号
export https_proxy='http://ip:port' //代理服务器ip地址和端口号
// 退出profile文件并保存
source /etc/profile // 使配置文件生效
希望此处理方法能够对大家有帮助.
还是报错:
[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] 请再问我一次吧, receiver=@b2beb360347cc73355b5478c9b6f4674
拉取最新的 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] 请再问我一次吧, receiver=@b2beb360347cc73355b5478c9b6f4674
可能的解决方案
若正确使用代理,第一次能通过,而后续不能使用api_key。可能是频繁更换ip导致的,openai对api_key具有安全检查,会自动更换api_key。
解决方案:在每次启动前,去生成一个新的api_key填入即可。
本人使用 阿里云服务器搭建国外代理环境:
自建教程:
https://w1.v2free.top/auth/register?code=7np0
参考教程:
https://github.com/bannedbook/fanqiang
根据自己使用的操作系统选择搭建的流程.我使用的Linux操作系统,亲测有效
https://github.com/bannedbook/fanqiang/tree/master/linux
环境变量添加如下:
//编辑配置文件
vim /etc/profile
//在该配置文件的最后添加代理配置
export http_proxy='http://ip:port' //代理服务器ip地址和端口号
export https_proxy='http://ip:port' //代理服务器ip地址和端口号
// 退出profile文件并保存
source /etc/profile // 使配置文件生效
希望此处理方法能够对大家有帮助.
您好,我按照教程配置到了“下载 clash 配置文件”,接下来是配置
//编辑配置文件
vim /etc/profile
//在该配置文件的最后添加代理配置
export http_proxy='http://ip:port' //代理服务器ip地址和端口号
export https_proxy='http://ip:port' //代理服务器ip地址和端口号
// 退出profile文件并保存
source /etc/profile // 使配置文件生效
了么,这个代理服务器ip端口是在网上找个免费的测试一下吗?
拉取最新的 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] 请再问我一次吧, receiver=@b2beb360347cc73355b5478c9b6f4674
您好,有解决吗,我也是使用的腾讯云新加坡的服务器,应该不会墙吧,但是扫码后提示 的这个
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'
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | 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: ***@***.***>
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | 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: ***@***.***>
拉取最新的 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] 请再问我一次吧, receiver=@b2beb360347cc73355b5478c9b6f4674
您好,有解决吗,我也是使用的腾讯云新加坡的服务器,应该不会墙吧,但是扫码后提示 的这个
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代码下面有更新说明,我没执行导致的,执行完后就可以了
本人使用 阿里云服务器搭建国外代理环境:
自建教程:
https://w1.v2free.top/auth/register?code=7np0
参考教程:
https://github.com/bannedbook/fanqiang
根据自己使用的操作系统选择搭建的流程.我使用的Linux操作系统,亲测有效
https://github.com/bannedbook/fanqiang/tree/master/linux
环境变量添加如下:
//编辑配置文件
vim /etc/profile
//在该配置文件的最后添加代理配置
export http_proxy='http://ip:port' //代理服务器ip地址和端口号
export https_proxy='http://ip:port' //代理服务器ip地址和端口号
// 退出profile文件并保存
source /etc/profile // 使配置文件生效
希望此处理方法能够对大家有帮助.
请问 /etc/profile 需要配置代理服务器的ip和端口,这个怎么理解?应该从哪里获取填的地址
拉取最新的 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] 请再问我一次吧, receiver=@b2beb360347cc73355b5478c9b6f4674
您好,有解决吗,我也是使用的腾讯云新加坡的服务器,应该不会墙吧,但是扫码后提示 的这个
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,也是提示你这个错误
| 收件人 | ***@***.***> |
| 抄送至 | ***@***.***>***@***.***> |
| 主题 | 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: ***@***.***>
提示说错误的API但实际上API没错,请问该如何处理啊
Start auto replying.
[INFO][2023-03-29 14:28:46][bridge.py:28] - create bot chatGPT for chat
[INFO][2023-03-29 14:28:46][chat_gpt_bot.py:34] - [OPEN_AI] query=可以嘛
[ERROR][2023-03-29 14:28:48][chat_gpt_bot.py:129] - Incorrect API key provided: YOUR API KEY. You can find your API key at
https://platform.openai.com/account/api-keys
.
Traceback (most recent call last):
File "e:\code\gpt on wechat\chatgpt-on-wechat\bot\chatgpt\chat_gpt_bot.py", line 102, in reply_text
response = openai.ChatCompletion.create(
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_resources\chat_completion.py", line 25, in create
return super().create(*args, **kwargs)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_resources\abstract\engine_api_resource.py", line 153, in create
response, _, api_key = requestor.request(
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_requestor.py", line 226, in request
resp, got_stream = self._interpret_response(result, stream)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_requestor.py", line 619, in _interpret_response
self._interpret_response_line(
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\openai\api_requestor.py", line 682, in _interpret_response_line
raise self.handle_error_response(
openai.error.AuthenticationError: Incorrect API key provided: YOUR API KEY. You can find your API key at
https://platform.openai.com/account/api-keys
.
[INFO][2023-03-29 14:28:48][wechat_channel.py:234] - [WX] sendMsg=Reply(type=ERROR, content=ERROR:
请再问我一次吧), receiver=@c11380800655cfc1db33ba5450e
阿里云,腾讯云购买国外服务器是否可以?
2023-06-04,购买阿里云美国节点window server服务器,尝试登录chatgpt,被提示 IP被限制,说明阿里云海外服务器也被墙了。
不知道用其它原生海外服务器供应商的服务器是否可以,比如亚马逊之类的服务器?