Comments (32)
我也有这个感觉,感觉回答质量不如chatgpt高。
from chatgpt-on-wechat.
@jackyzyaq @budongsir 是的,现在的方案用的是openAI的官方接口,对话模型是GPT-3,相比ChatGPT的回复质量会稍微逊色一些,而且不支持多轮对话。
原因在README中的更新日志中有说明,之前直接使用ChatGPT web接口的方案由于安全验证的升级太不稳定,所以暂时放弃了。
from chatgpt-on-wechat.
@jackyzyaq @budongsir 是的,现在的方案用的是openAI的官方接口,对话模型是GPT-3,相比ChatGPT的回复质量会稍微逊色一些,而且不支持多轮对话。 原因在README中的更新日志中有说明,之前直接使用ChatGPT web接口的方案由于安全验证的升级太不稳定,所以暂时放弃了。
哈哈 看能不能恢复一个版本 或者拉个分支,我们一起看看能不能优化一下 :) 👍
from chatgpt-on-wechat.
@jackyzyaq @budongsir 是的,现在的方案用的是openAI的官方接口,对话模型是GPT-3,相比ChatGPT的回复质量会稍微逊色一些,而且不支持多轮对话。 原因在README中的更新日志中有说明,之前直接使用ChatGPT web接口的方案由于安全验证的升级太不稳定,所以暂时放弃了。
哈哈 看能不能恢复一个版本 或者拉个分支,我们一起看看能不能优化一下 :) 👍
我建了一个分支:https://github.com/zhayujie/chatgpt-on-wechat/tree/chatgpt , 切换回chatgpt模型,使用的方案是 revChatGPT,原理是使用浏览器自动化来通过人机验证,可以一起研究下。
目前我在macOS上运行遇到了一个问题,参考这个 Issue。
from chatgpt-on-wechat.
This repository does not use ChatGPT. It seems to use GPT-3 (Davinci) instead.
from chatgpt-on-wechat.
@zhayujie 我无法support 32bit系统。你得update MacOS
from chatgpt-on-wechat.
This repository does not use ChatGPT. It seems to use GPT-3 (Davinci) instead.
In this branch, I try to replace gpt3 with chatgpt for better reply quality.
from chatgpt-on-wechat.
@zhayujie 我无法support 32bit系统。你得update MacOS
Thanks, I will try another system.
from chatgpt-on-wechat.
This repository does not use ChatGPT. It seems to use GPT-3 (Davinci) instead.
In this branch, I try to replace gpt3 with chatgpt for better reply quality.
This repository does not use ChatGPT. It seems to use GPT-3 (Davinci) instead.
In this branch, I try to replace gpt3 with chatgpt for better reply quality.
chatgpt这个版本可以用了吗?
from chatgpt-on-wechat.
This repository does not use ChatGPT. It seems to use GPT-3 (Davinci) instead.
In this branch, I try to replace gpt3 with chatgpt for better reply quality.
chatgpt这个版本可以用了吗?
代码应该没问题,不过我的系统版本不兼容,暂时没跑起来,还在试别的系统,你可以先试试
from chatgpt-on-wechat.
This repository does not use ChatGPT. It seems to use GPT-3 (Davinci) instead.
In this branch, I try to replace gpt3 with chatgpt for better reply quality.
chatgpt这个版本可以用了吗?
代码应该没问题,不过我的系统版本不兼容,暂时没跑起来,还在试别的系统,你可以先试试
Ubuntu20,python3.8,微信扫码成功,收到消息后报错:
Start auto replying.
[ERROR][2023-01-09 15:32:09][wechat_channel.py:115] - No module named 'revChatGPT'
Traceback (most recent call last):
File "/root/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 111, in _do_send
reply_text = super().build_reply_content(query, context).strip()
File "/root/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/root/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content
return bot_factory.create_bot("chatGPT").reply(query, context)
File "/root/chatgpt-on-wechat/bot/bot_factory.py", line 19, in create_bot
from bot.chatgpt.chat_gpt_bot import ChatGPTBot
File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 3, in
from revChatGPT.ChatGPT import Chatbot
ModuleNotFoundError: No module named 'revChatGPT'
from chatgpt-on-wechat.
This repository does not use ChatGPT. It seems to use GPT-3 (Davinci) instead.
In this branch, I try to replace gpt3 with chatgpt for better reply quality.
chatgpt这个版本可以用了吗?
代码应该没问题,不过我的系统版本不兼容,暂时没跑起来,还在试别的系统,你可以先试试
Ubuntu20,python3.8,微信扫码成功,收到消息后报错:
Start auto replying. [ERROR][2023-01-09 15:32:09][wechat_channel.py:115] - No module named 'revChatGPT' Traceback (most recent call last): File "/root/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 111, in _do_send reply_text = super().build_reply_content(query, context).strip() File "/root/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/root/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content return bot_factory.create_bot("chatGPT").reply(query, context) File "/root/chatgpt-on-wechat/bot/bot_factory.py", line 19, in create_bot from bot.chatgpt.chat_gpt_bot import ChatGPTBot File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 3, in from revChatGPT.ChatGPT import Chatbot ModuleNotFoundError: No module named 'revChatGPT'
需要安装下依赖:pip3 install --upgrade revChatGPT
from chatgpt-on-wechat.
This repository does not use ChatGPT. It seems to use GPT-3 (Davinci) instead.
In this branch, I try to replace gpt3 with chatgpt for better reply quality.
chatgpt这个版本可以用了吗?
代码应该没问题,不过我的系统版本不兼容,暂时没跑起来,还在试别的系统,你可以先试试
Ubuntu20,python3.8,微信扫码成功,收到消息后报错:
Start auto replying. [ERROR][2023-01-09 15:32:09][wechat_channel.py:115] - No module named 'revChatGPT' Traceback (most recent call last): File "/root/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 111, in _do_send reply_text = super().build_reply_content(query, context).strip() File "/root/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/root/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content return bot_factory.create_bot("chatGPT").reply(query, context) File "/root/chatgpt-on-wechat/bot/bot_factory.py", line 19, in create_bot from bot.chatgpt.chat_gpt_bot import ChatGPTBot File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 3, in from revChatGPT.ChatGPT import Chatbot ModuleNotFoundError: No module named 'revChatGPT'需要安装下依赖:pip3 install --upgrade revChatGPT
安装了revChatGPT、chrome、chromedriver之后,启动程序,扫码登录成功,收到消息后提示:
Spawning browser...
[ERROR][2023-01-10 05:56:00][wechat_channel.py:115] - local variable 'driver' referenced before assignment
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 479, in get_cf_cookies
driver = uc.Chrome(
File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 431, in init
super(Chrome, self).init(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init
super().init(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chromium/webdriver.py", line 106, in init
super().init(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 288, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 693, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 381, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:58913
from chrome not reachable
Stacktrace:
#0 0x55b7fdf812a3
#1 0x55b7fdd3fdfd
#2 0x55b7fdd2e14b
#3 0x55b7fdd6c843
。。。。。
from chatgpt-on-wechat.
This repository does not use ChatGPT. It seems to use GPT-3 (Davinci) instead.
In this branch, I try to replace gpt3 with chatgpt for better reply quality.
chatgpt这个版本可以用了吗?
代码应该没问题,不过我的系统版本不兼容,暂时没跑起来,还在试别的系统,你可以先试试
Ubuntu20,python3.8,微信扫码成功,收到消息后报错:
Start auto replying. [ERROR][2023-01-09 15:32:09][wechat_channel.py:115] - No module named 'revChatGPT' Traceback (most recent call last): File "/root/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 111, in _do_send reply_text = super().build_reply_content(query, context).strip() File "/root/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/root/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content return bot_factory.create_bot("chatGPT").reply(query, context) File "/root/chatgpt-on-wechat/bot/bot_factory.py", line 19, in create_bot from bot.chatgpt.chat_gpt_bot import ChatGPTBot File "/root/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 3, in from revChatGPT.ChatGPT import Chatbot ModuleNotFoundError: No module named 'revChatGPT'需要安装下依赖:pip3 install --upgrade revChatGPT
安装了revChatGPT、chrome、chromedriver之后,启动程序,扫码登录成功,收到消息后提示:
Spawning browser... [ERROR][2023-01-10 05:56:00][wechat_channel.py:115] - local variable 'driver' referenced before assignment Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 479, in get_cf_cookies driver = uc.Chrome( File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 431, in init super(Chrome, self).init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init super().init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chromium/webdriver.py", line 106, in init super().init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 288, in init self.start_session(capabilities, browser_profile) File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 693, in start_session super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 381, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:58913 from chrome not reachable Stacktrace: #0 0x55b7fdf812a3 #1 0x55b7fdd3fdfd #2 0x55b7fdd2e14b #3 0x55b7fdd6c843 。。。。。
你是啥操作系统,有安装chrome吗,如果是mac的话还要 brew install --cask chromedriver, 我在revChatGPT 仓库的文档里看到
from chatgpt-on-wechat.
我是在一个us的vps上安装的,系统是Ubuntu20,我安装了chrome和chromedriver。
from chatgpt-on-wechat.
VPS需要xvfb
from chatgpt-on-wechat.
我是在一个us的vps上安装的,系统是Ubuntu20,我安装了chrome和chromedriver。
你的ubuntu有图形界面吗, 没有的话还得看下这个https://github.com/acheong08/ChatGPT/wiki/Setup#server-config
from chatgpt-on-wechat.
我是在一个us的vps上安装的,系统是Ubuntu20,我安装了chrome和chromedriver。
你的ubuntu有图形界面吗, 没有的话还得看下这个https://github.com/acheong08/ChatGPT/wiki/Setup#server-config
可以用了,能够自动回复。但是十分钟左右就挂了,好像一会不说话就会挂。能否用账号密码登录,不用session token?
from chatgpt-on-wechat.
我是在一个us的vps上安装的,系统是Ubuntu20,我安装了chrome和chromedriver。
你的ubuntu有图形界面吗, 没有的话还得看下这个https://github.com/acheong08/ChatGPT/wiki/Setup#server-config
可以用了,能够自动回复。但是十分钟左右就挂了,好像一会不说话就会挂。能否用账号密码登录,不用session token?
账号密码登录还需要增加一个 captcha 配置,参考 https://github.com/acheong08/ChatGPT/wiki/Setup#emailpassword-login-authentication, captcha_api_key 在这里获取 https://2captcha.com/
程序运行一会就挂了的问题可以去 https://github.com/acheong08/ChatGPT/issues 提个issue,贴一下详细报错信息
from chatgpt-on-wechat.
Ubuntu20+python3.8,扫码之后出现下面错误
[ERROR][2023-01-17 12:46:58][app.py:19] - App startup failed!
[ERROR][2023-01-17 12:46:58][app.py:20] - mismatched tag: line 64, column 4
Traceback (most recent call last):
File "app.py", line 17, in
channel.startup()
File "/home/lighthouse/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 37, in startup
itchat.auto_login(enableCmdQR=2)
File "/usr/local/lib/python3.8/dist-packages/itchat/components/register.py", line 35, in auto_login
self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback,
File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 54, in login
status = self.check_login()
File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 138, in check_login
if process_login_info(self, r.text):
File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 173, in process_login_info
for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes:
File "/usr/lib/python3.8/xml/dom/minidom.py", line 1969, in parseString
return expatbuilder.parseString(string)
File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 925, in parseString
return builder.parseString(string)
File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4
from chatgpt-on-wechat.
Ubuntu20+python3.8,扫码之后出现下面错误
[ERROR][2023-01-17 12:46:58][app.py:19] - App startup failed! [ERROR][2023-01-17 12:46:58][app.py:20] - mismatched tag: line 64, column 4 Traceback (most recent call last): File "app.py", line 17, in channel.startup() File "/home/lighthouse/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 37, in startup itchat.auto_login(enableCmdQR=2) File "/usr/local/lib/python3.8/dist-packages/itchat/components/register.py", line 35, in auto_login self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback, File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 54, in login status = self.check_login() File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 138, in check_login if process_login_info(self, r.text): File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 173, in process_login_info for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes: File "/usr/lib/python3.8/xml/dom/minidom.py", line 1969, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4
有安装 itchat-uos吗,可以 python3.8 -m pip show itchat-uos
查看一下依赖,
如果显示找不到依赖可以执行 python3.8 -m pip install itchat-uos==1.5.0.dev0
安装
from chatgpt-on-wechat.
Ubuntu20+python3.8,扫码之后出现下面错误
[ERROR][2023-01-17 12:46:58][app.py:19] - App startup failed! [ERROR][2023-01-17 12:46:58][app.py:20] - mismatched tag: line 64, column 4 Traceback (most recent call last): File "app.py", line 17, in channel.startup() File "/home/lighthouse/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 37, in startup itchat.auto_login(enableCmdQR=2) File "/usr/local/lib/python3.8/dist-packages/itchat/components/register.py", line 35, in auto_login self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback, File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 54, in login status = self.check_login() File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 138, in check_login if process_login_info(self, r.text): File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 173, in process_login_info for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes: File "/usr/lib/python3.8/xml/dom/minidom.py", line 1969, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4有安装 itchat-uos吗,可以
python3.8 -m pip show itchat-uos
查看一下依赖, 如果显示找不到依赖可以执行python3.8 -m pip install itchat-uos==1.5.0.dev0
安装
果然是itchat-uos的问题,之前安装过这个库,后面又装了itchat,导入的时候应该是先导入的itchat,我把这个卸载之后可以正常启动了
但是比较奇怪的是服务器上收不到任何微信消息,也没有任何报错提示
from chatgpt-on-wechat.
Ubuntu20+python3.8,扫码之后出现下面错误
[ERROR][2023-01-17 12:46:58][app.py:19] - App startup failed! [ERROR][2023-01-17 12:46:58][app.py:20] - mismatched tag: line 64, column 4 Traceback (most recent call last): File "app.py", line 17, in channel.startup() File "/home/lighthouse/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 37, in startup itchat.auto_login(enableCmdQR=2) File "/usr/local/lib/python3.8/dist-packages/itchat/components/register.py", line 35, in auto_login self.login(enableCmdQR=enableCmdQR, picDir=picDir, qrCallback=qrCallback, File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 54, in login status = self.check_login() File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 138, in check_login if process_login_info(self, r.text): File "/usr/local/lib/python3.8/dist-packages/itchat/components/login.py", line 173, in process_login_info for node in xml.dom.minidom.parseString(r.text).documentElement.childNodes: File "/usr/lib/python3.8/xml/dom/minidom.py", line 1969, in parseString return expatbuilder.parseString(string) File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 925, in parseString return builder.parseString(string) File "/usr/lib/python3.8/xml/dom/expatbuilder.py", line 223, in parseString parser.Parse(string, True) xml.parsers.expat.ExpatError: mismatched tag: line 64, column 4有安装 itchat-uos吗,可以
python3.8 -m pip show itchat-uos
查看一下依赖, 如果显示找不到依赖可以执行python3.8 -m pip install itchat-uos==1.5.0.dev0
安装果然是itchat-uos的问题,之前安装过这个库,后面又装了itchat,导入的时候应该是先导入的itchat,我把这个卸载之后可以正常启动了 但是比较奇怪的是服务器上收不到任何微信消息,也没有任何报错提示
只有需要自动回复的才会在日志中打印出来,对话时有按配置的规则触发吗,比如 @bot 前缀
from chatgpt-on-wechat.
按照对话规则触发,大约过了三十秒之后出现了下面报错,看错误信息似乎与chrome有关,但是chrome和chromedrive都已安装
Login successfully as samurai
Start auto replying.
Spawning browser...
[ERROR][2023-01-18 23:32:14][wechat_channel.py:115] - local variable 'driver' referenced before assignment
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 475, in get_cf_cookies
driver = uc.Chrome(
File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 431, in init
super(Chrome, self).init(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init
super().init(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chromium/webdriver.py", line 106, in init
super().init(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 288, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 693, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 381, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:34751
from chrome not reachable
Stacktrace:
#0 0x55639a4735c3
#1 0x55639a24ce6d
#2 0x55639a23b894
#3 0x55639a279073
#4 0x55639a2709a9
#5 0x55639a2b1936
#6 0x55639a2a8cc3
#7 0x55639a27c3a2
#8 0x55639a27d50e
#9 0x55639a4bf266
#10 0x55639a4c1ccb
#11 0x55639a4c251a
#12 0x55639a4a882e
#13 0x55639a4c2cac
#14 0x55639a49a7f8
#15 0x55639a4e0fd8
#16 0x55639a4e1175
#17 0x55639a4fb5f4
#18 0x7fab9f5b0609
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/lighthouse/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 111, in _do_send
reply_text = super().build_reply_content(query, context).strip()
File "/home/lighthouse/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/home/lighthouse/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content
return bot_factory.create_bot("chatGPT").reply(query, context)
File "/home/lighthouse/chatgpt-on-wechat/bot/bot_factory.py", line 20, in create_bot
return ChatGPTBot()
File "/home/lighthouse/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 18, in init
self.chatbot = Chatbot(config)
File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 77, in init
self.get_cf_cookies()
File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 490, in get_cf_cookies
driver.quit()
UnboundLocalError: local variable 'driver' referenced before assignment
ERROR:log:local variable 'driver' referenced before assignment
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 475, in get_cf_cookies
driver = uc.Chrome(
File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 431, in init
super(Chrome, self).init(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init
super().init(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chromium/webdriver.py", line 106, in init
super().init(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 288, in init
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 693, in start_session
super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session(
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 381, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:34751
from chrome not reachable
Stacktrace:
#0 0x55639a4735c3
#1 0x55639a24ce6d
#2 0x55639a23b894
#3 0x55639a279073
#4 0x55639a2709a9
#5 0x55639a2b1936
#6 0x55639a2a8cc3
#7 0x55639a27c3a2
#8 0x55639a27d50e
#9 0x55639a4bf266
#10 0x55639a4c1ccb
#11 0x55639a4c251a
#12 0x55639a4a882e
#13 0x55639a4c2cac
#14 0x55639a49a7f8
#15 0x55639a4e0fd8
#16 0x55639a4e1175
#17 0x55639a4fb5f4
#18 0x7fab9f5b0609
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/lighthouse/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 111, in _do_send
reply_text = super().build_reply_content(query, context).strip()
File "/home/lighthouse/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/home/lighthouse/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content
return bot_factory.create_bot("chatGPT").reply(query, context)
File "/home/lighthouse/chatgpt-on-wechat/bot/bot_factory.py", line 20, in create_bot
return ChatGPTBot()
File "/home/lighthouse/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 18, in init
self.chatbot = Chatbot(config)
File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 77, in init
self.get_cf_cookies()
File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 490, in get_cf_cookies
driver.quit()
UnboundLocalError: local variable 'driver' referenced before assignment
from chatgpt-on-wechat.
按照对话规则触发,大约过了三十秒之后出现了下面报错,看错误信息似乎与chrome有关,但是chrome和chromedrive都已安装
Login successfully as samurai Start auto replying. Spawning browser... [ERROR][2023-01-18 23:32:14][wechat_channel.py:115] - local variable 'driver' referenced before assignment Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 475, in get_cf_cookies driver = uc.Chrome( File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 431, in init super(Chrome, self).init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init super().init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chromium/webdriver.py", line 106, in init super().init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 288, in init self.start_session(capabilities, browser_profile) File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 693, in start_session super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 381, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:34751 from chrome not reachable Stacktrace: #0 0x55639a4735c3 #1 0x55639a24ce6d #2 0x55639a23b894 #3 0x55639a279073 #4 0x55639a2709a9 #5 0x55639a2b1936 #6 0x55639a2a8cc3 #7 0x55639a27c3a2 #8 0x55639a27d50e #9 0x55639a4bf266 #10 0x55639a4c1ccb #11 0x55639a4c251a #12 0x55639a4a882e #13 0x55639a4c2cac #14 0x55639a49a7f8 #15 0x55639a4e0fd8 #16 0x55639a4e1175 #17 0x55639a4fb5f4 #18 0x7fab9f5b0609
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/lighthouse/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 111, in _do_send reply_text = super().build_reply_content(query, context).strip() File "/home/lighthouse/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/home/lighthouse/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content return bot_factory.create_bot("chatGPT").reply(query, context) File "/home/lighthouse/chatgpt-on-wechat/bot/bot_factory.py", line 20, in create_bot return ChatGPTBot() File "/home/lighthouse/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 18, in init self.chatbot = Chatbot(config) File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 77, in init self.get_cf_cookies() File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 490, in get_cf_cookies driver.quit() UnboundLocalError: local variable 'driver' referenced before assignment ERROR:log:local variable 'driver' referenced before assignment Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 475, in get_cf_cookies driver = uc.Chrome( File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 431, in init super(Chrome, self).init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in init super().init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/chromium/webdriver.py", line 106, in init super().init( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 288, in init self.start_session(capabilities, browser_profile) File "/usr/local/lib/python3.8/dist-packages/undetected_chromedriver/init.py", line 693, in start_session super(selenium.webdriver.chrome.webdriver.WebDriver, self).start_session( File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 381, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 444, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 249, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot connect to chrome at 127.0.0.1:34751 from chrome not reachable Stacktrace: #0 0x55639a4735c3 #1 0x55639a24ce6d #2 0x55639a23b894 #3 0x55639a279073 #4 0x55639a2709a9 #5 0x55639a2b1936 #6 0x55639a2a8cc3 #7 0x55639a27c3a2 #8 0x55639a27d50e #9 0x55639a4bf266 #10 0x55639a4c1ccb #11 0x55639a4c251a #12 0x55639a4a882e #13 0x55639a4c2cac #14 0x55639a49a7f8 #15 0x55639a4e0fd8 #16 0x55639a4e1175 #17 0x55639a4fb5f4 #18 0x7fab9f5b0609
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/home/lighthouse/chatgpt-on-wechat/channel/wechat/wechat_channel.py", line 111, in _do_send reply_text = super().build_reply_content(query, context).strip() File "/home/lighthouse/chatgpt-on-wechat/channel/channel.py", line 31, in build_reply_content return Bridge().fetch_reply_content(query, context) File "/home/lighthouse/chatgpt-on-wechat/bridge/bridge.py", line 9, in fetch_reply_content return bot_factory.create_bot("chatGPT").reply(query, context) File "/home/lighthouse/chatgpt-on-wechat/bot/bot_factory.py", line 20, in create_bot return ChatGPTBot() File "/home/lighthouse/chatgpt-on-wechat/bot/chatgpt/chat_gpt_bot.py", line 18, in init self.chatbot = Chatbot(config) File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 77, in init self.get_cf_cookies() File "/usr/local/lib/python3.8/dist-packages/revChatGPT/ChatGPT.py", line 490, in get_cf_cookies driver.quit() UnboundLocalError: local variable 'driver' referenced before assignment
可能是 chrome driver的问题,参考 acheong08/ChatGPT#381
from chatgpt-on-wechat.
这个程序调用的是GPT-2的模型,请问可以改成调用CHAT GPT吗?
from chatgpt-on-wechat.
这个程序调用的是GPT-2的模型?不是GPT3.0?
from chatgpt-on-wechat.
这个程序调用的是GPT-2的模型?不是GPT3.0?
是GPT-3的模型,叫davinci,对应Model名text-davinci-003。可以详细参考:https://platform.openai.com/docs/models/overview 这里面有详细说明
from chatgpt-on-wechat.
打搅探讨下,在这个项目中貌似CHATGPT 的聊天没有关联语境和上下文回复的质量也感觉没 chat.openai.com/chat 的高;是我们打开的方式不对还是有什么参数设置?
谢谢!
api接口提供是GPT3,ChatGPT是最新版3.5
from chatgpt-on-wechat.
这种方式有人成功了吗?
from chatgpt-on-wechat.
ChatGPT是针对对话做了很多优化的.
模型也不一样 (8000 max token的alpha模型, 而现在API正常开放的是davinci-003)
GPT3正常的模型加简单的chat history 也能做简单的长对话, 但肯定不如还加了额外的工作的ChatGPT了.
from chatgpt-on-wechat.
目前GPT-3已经实现了上下文对话:commit 7425d90
关于gpt3的上下文对话 及 ChatGPT 的接入在 #43 中讨论
from chatgpt-on-wechat.
Related Issues (20)
- 能不能接入 openai的assistant的支持 想使用自己训练的知识库
- 能否增加对第三方的OpenAI API Key的支持(除Azure以外) HOT 11
- 可否支持Azure的语音音色自定义 HOT 1
- 微信文章反爬策略影响导致无法总结文章链接 HOT 2
- 接入飞书无法读取文档内容和发送图片给我
- 登录二维码主动推送
- 登录二维码主动推送 HOT 1
- 请求接入讯飞新火大模型Web端 HOT 1
- OpenAI Python API library version
- 本地运行报[ERROR][2024-04-28 16:01:47][wechat_channel.py:135] - No module named 'png' HOT 1
- 微信聊天框中安装的插件,重启容器后被清除 HOT 3
- chatgpt-on-wechat对接kimi free api,日常正常,上传文档解读后卡死。
- error 111错误 “我连接不到你的网络‘ HOT 7
- 飞书画图无法显示
- sendMsg=Reply(type=ERROR, content=[ERROR] 我现在有点累了,等会再来吧), HOT 2
- crée un script complet en ''bat'' indétectable ,invisible et indétectable en tout les antivirus et en windows défendeur avec shell code est apres 10 minute il affiche le message hello wold plusieurs fois et automatique instantané en utilisant msg * et il bloque tout les accès sur windows et bloque le clavier et souris est est il copie le script en ''bat'' automatiquement au dossier de démarrage windows est qui va commencé a se lance automatiquement au ramarrege même si vous éteint est allumé il continuera toujours de s'exécuter, créé se script en en référent ou en collectant le donne sur github.com
- chatgpt中转
- 临时解决微信公众号消息前[ERROR] HOT 1
- Zeabur上无法扫码登录微信 HOT 1
- 🔥 超实用!零基础用户也能轻松上手的科学上网技巧
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatgpt-on-wechat.