Closed luo22833548 closed 1 year ago
需要把你仓库主目录下的Dockerfile删掉。这样railway会使用你的仓库代码来部署
删除了了Dockerfile文件后 重新部署 显示插件未启用
检查下log吧,deploy logs
[INFO][2023-05-11 12:58:39][config.py:195] - [INIT] load config: {'open_ai_api_key': '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', 'model': 'gpt-3.5-turbo', 'proxy': '', 'single_chat_prefix': [''], 'single_chat_reply_prefix': '[ChatGPT] ', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ALL_GROUP'], 'group_chat_in_one_session': ['ALL_GROUP'], 'image_create_prefix': ['画', '看', '找'], 'speech_recognition': False, 'group_speech_recognition': False, 'voice_reply_voice': False, 'conversation_max_tokens': 1000, 'expires_in_seconds': 3600, 'character_desc': '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。', 'subscribe_msg': '感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。'} [INFO][2023-05-11 12:58:39][config.py:145] - [Config] User datas file not found, ignore. /usr/local/lib/python3.10/dist-packages/pydub/utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning) [INFO][2023-05-11 12:58:40][plugin_manager.py:50] - Loading plugins config... [INFO][2023-05-11 12:58:40][plugin_manager.py:66] - Scaning plugins ... [INFO][2023-05-11 12:58:40][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role [INFO][2023-05-11 12:58:40][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords [INFO][2023-05-11 12:58:40][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish [INFO][2023-05-11 12:58:40][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd [INFO][2023-05-11 12:58:40][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello [INFO][2023-05-11 12:58:40][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon [INFO][2023-05-11 12:58:40][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword [INFO][2023-05-11 12:58:40][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit chatgpt-tool-hub version: 0.4.3 [INFO][2023-05-11 12:58:40][plugin_manager.py:41] - Plugin tool_v0.4 registered, path=./plugins/tool [INFO][2023-05-11 12:58:40][godcmd.py:181] - [Godcmd] 因未设置口令,本次的临时口令为4781。 [INFO][2023-05-11 12:58:40][godcmd.py:196] - [Godcmd] inited [INFO][2023-05-11 12:58:40][keyword.py:40] - [keyword] {} [INFO][2023-05-11 12:58:40][keyword.py:42] - [keyword] inited. [ERROR][2023-05-11 12:58:40][plugin_manager.py:126] - Failed to init TOOL, diabled. Expecting ',' delimiter: line 18 column 5 (char 295) Traceback (most recent call last): File "/root/chatgpt-on-wechat/plugins/plugin_manager.py", line 124, in activate_plugins instance = plugincls() File "/root/chatgpt-on-wechat/plugins/tool/tool.py", line 30, in init self.app = self._reset_app() File "/root/chatgpt-on-wechat/plugins/tool/tool.py", line 175, in _reset_app tool_config = self._read_json() File "/root/chatgpt-on-wechat/plugins/tool/tool.py", line 128, in _read_json tool_config = json.load(f) File "/usr/lib/python3.10/json/init.py", line 293, in load return loads(fp.read(), File "/usr/lib/python3.10/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/usr/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.10/json/decoder.py", line 353, in raw_decode obj, end = self.scan_once(s, idx) json.decoder.JSONDecodeError: Expecting ',' delimiter: line 18 column 5 (char 295) [INFO][2023-05-11 12:58:40][role.py:69] - [Role] inited [INFO][2023-05-11 12:58:40][dungeon.py:56] - [Dungeon] inited [INFO][2023-05-11 12:58:40][hello.py:23] - [Hello] inited [INFO][2023-05-11 12:58:40][finish.py:23] - [Finish] inited Ready to login. Getting uuid of QR code. Downloading QR code. You can also scan QRCode in any website below: https://api.pwmqr.com/qrcode/create/?url=https://login.weixin.qq.com/l/offh3CNC8w== https://my.tv.sohu.com/user/a/wvideo/getQRCode.do?text=https://login.weixin.qq.com/l/offh3CNC8w== https://api.qrserver.com/v1/create-qr-code/?size=400×400&data=https://login.weixin.qq.com/l/offh3CNC8w== https://api.isoyu.com/qr/?m=1&e=L&p=20&url=https://login.weixin.qq.com/l/offh3CNC8w== █▀▀▀▀▀▀▀█▀███▀█▀▀█▀████▀▀▀▀▀▀▀█ █ █▀▀▀█ █▀ ▄█ █ ▀█▀ █ █▀▀▀█ █ █ █ █ ██▀▄▀▄▀ ▀█▄▀█▄█ █ █ █ █ ▀▀▀▀▀ █ █▀█ ▄▀█ ▄ █▀█ ▀▀▀▀▀ █ █▀█▀███▀▀██▀▀▄█ ███▄ ██▀██▀█▀█ ██ ▀▄█▀ ▄█▀█▄ ▀█▀ ▀█▄▄▀▀▀▄ █ ██▄▀ ▄▀██▄█▀▄███▀█▄▄ ▀ ▀▄▄██▀█ █▄▀▄█ ▀▀ ▀ ▄█ █▄ ▄█ ▄█▄▄███▄ █ █▀█▀ ▀▄▀▄█▀ █▄█ █▄█▀█ ████▀█ █▀ ▀▄ █▀ ▄█▄▀█ ▄ █ ▄ ▄█▀▄▄ █ █▀▀ ▀▀▄█▄▀ █ █ █▀ ▀█▀██ █▀▀▀▀▀▀▀█ █▀█▄ ▄ ▄▄█▄ █▀█ ▄▄█ █ █ █▀▀▀█ ███▄ ▄▀ ▄ █▄ ▀▀▀ ▀█▀▄█ █ █ █ █▀ ▄▄▄ ▀ ▄ █ █ ██ ▄▄▀ █ █ ▀▀▀▀▀ █▀▄▀▀█▄▀▄ █▀█ ▄▀██ ██▀█ ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ Please press confirm on your phone. Unexpected sync check result: window.synccheck={retcode:"1101",selector:"0"} LOG OUT! Loading the contact, this may take a little while. Login successfully as 人工智障 [INFO][2023-05-11 12:58:59][wechat_channel.py:124] - Wechat login success, user_id: @654ffa07fab98f42cdef7b8b11ecc4233dd578c1b5e43d2d4e42159bb1bd3b98, nickname: 人工智障 Start auto replying. [INFO][2023-05-11 12:59:09][bridge.py:30] - create bot chatGPT for chat [INFO][2023-05-11 12:59:10][chat_gpt_bot.py:49] - [CHATGPT] query=你好 [INFO][2023-05-11 12:59:30][wechat_channel.py:187] - [WX] sendMsg=Reply(type=INFO, content=[INFO] 通用指令:
目前可用插件有: 角色扮演:让机器人扮演不同的角色。 文字冒险:可以和机器人一起玩文字冒险游戏。), receiver=@8bb92efda80a6ef003f846c029c8d1ced7b0efe375abb6be4be3913189befad4 [INFO][2023-05-11 12:59:57][wechat_channel.py:187] - [WX] sendMsg=Reply(type=INFO, content=[INFO] 认证成功,请尽快设置口令), receiver=@8bb92efda80a6ef003f846c029c8d1ced7b0efe375abb6be4be3913189befad4 [INFO][2023-05-11 13:00:03][wechat_channel.py:187] - [WX] sendMsg=Reply(type=INFO, content=[INFO] 插件列表: Godcmd_v1.0 999 - 已启用 Keyword_v0.1 900 - 已启用 Banwords_v1.0 100 - 未启用 tool_v0.4 0 - 未启用 Role_v1.0 0 - 已启用 Dungeon_v1.0 0 - 已启用 BDunit_v0.1 0 - 未启用 Hello_v0.1 -1 - 已启用 Finish_v1.0 -999 - 已启用 ), receiver=@8bb92efda80a6ef003f846c029c8d1ced7b0efe375abb6be4be3913189befad4
[ERROR][2023-05-11 12:58:40][plugin_manager.py:126] - Failed to init TOOL, diabled. Expecting ',' delimiter: line 18 column 5 (char 295) 目测tool的config.json格式不对
{ "tools": ["news","morning-news","wikipedia"], "kwargs": { "llm_api_key": "", "proxy": "", "debug": false, "top_k_results": 2, "no_default": false, "model_name": "gpt-3.5-turbo" "news_api_key": "fb7fa16579ba47a4a69a04ba5f0f477f" "morning_news_api_key": "T2yYCCBcUMMss5K1" } }
兄弟,可以加你微信吗?我也是通过railway一键部署的,但是也希望跟你一样用上这些插件
gy0427fd
前置确认
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
Railway
运行的python版本是?
python 3.7
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
No response
问题描述 😯
在插件文件夹里的tool文件里新建了config.json,发现是无效的 还是只有4个默认插件
终端日志 📒
[INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: single_chat_reply_prefix=[ChatGPT] [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: group_chat_in_one_session=["ALL_GROUP"] [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: group_name_white_list=["ALL_GROUP"] [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: group_speech_recognition=False [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: speech_recognition=True [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: image_create_prefix=["画", "看", "找"] [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: voice_reply_voice=False [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: open_ai_api_key=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 [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: expires_in_seconds=3600 [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: conversation_max_tokens=1000 [INFO][2023-05-10 05:21:21][config.py:180] - [INIT] override config by environ args: model=gpt-3.5-turbo [INFO][2023-05-10 05:21:21][config.py:195] - [INIT] load config: {'open_ai_api_key': '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', 'model': 'gpt-3.5-turbo', 'proxy': '', 'single_chat_prefix': [''], 'single_chat_reply_prefix': '[ChatGPT] ', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ALL_GROUP'], 'group_chat_in_one_session': ['ALL_GROUP'], 'image_create_prefix': ['画', '看', '找'], 'speech_recognition': True, 'group_speech_recognition': False, 'voice_reply_voice': False, 'conversation_max_tokens': 1000, 'expires_in_seconds': 3600, 'character_desc': '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。', 'subscribe_msg': '感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。'} [INFO][2023-05-10 05:21:21][config.py:145] - [Config] User datas file not found, ignore. █ [INFO][2023-05-10 05:21:23][plugin_manager.py:50] - Loading plugins config... [INFO][2023-05-10 05:21:23][plugin_manager.py:66] - Scaning plugins ... [INFO][2023-05-10 05:21:23][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish [INFO][2023-05-10 05:21:23][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords [INFO][2023-05-10 05:21:23][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd [INFO][2023-05-10 05:21:23][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello [INFO][2023-05-10 05:21:23][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon [INFO][2023-05-10 05:21:23][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role chatgpt-tool-hub version: 0.4.3 [INFO][2023-05-10 05:21:26][plugin_manager.py:41] - Plugin tool_v0.4 registered, path=./plugins/tool [INFO][2023-05-10 05:21:26][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit [INFO][2023-05-10 05:21:26][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword [INFO][2023-05-10 05:21:26][plugin_manager.py:101] - Plugin GODCMD not found in pconfig, adding to pconfig... [INFO][2023-05-10 05:21:26][plugin_manager.py:101] - Plugin KEYWORD not found in pconfig, adding to pconfig... [INFO][2023-05-10 05:21:26][plugin_manager.py:101] - Plugin BANWORDS not found in pconfig, adding to pconfig... [INFO][2023-05-10 05:21:26][plugin_manager.py:101] - Plugin TOOL not found in pconfig, adding to pconfig... [INFO][2023-05-10 05:21:26][plugin_manager.py:101] - Plugin ROLE not found in pconfig, adding to pconfig... [INFO][2023-05-10 05:21:26][plugin_manager.py:101] - Plugin DUNGEON not found in pconfig, adding to pconfig... [INFO][2023-05-10 05:21:26][plugin_manager.py:101] - Plugin BDUNIT not found in pconfig, adding to pconfig... [INFO][2023-05-10 05:21:26][plugin_manager.py:101] - Plugin HELLO not found in pconfig, adding to pconfig... [INFO][2023-05-10 05:21:26][plugin_manager.py:101] - Plugin FINISH not found in pconfig, adding to pconfig... [INFO][2023-05-10 05:21:26][godcmd.py:181] - [Godcmd] 因未设置口令,本次的临时口令为5369。 [INFO][2023-05-10 05:21:26][godcmd.py:196] - [Godcmd] inited [INFO][2023-05-10 05:21:26][keyword.py:40] - [keyword] {} [INFO][2023-05-10 05:21:26][keyword.py:42] - [keyword] inited. [WARNING][2023-05-10 05:21:26][banwords.py:53] - [Banwords] init failed, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/banwords . [ERROR][2023-05-10 05:21:26][plugin_manager.py:126] - Failed to init BANWORDS, diabled. [Errno 2] No such file or directory: '/app/plugins/banwords/banwords.txt' Traceback (most recent call last): File "/app/plugins/plugin_manager.py", line 124, in activate_plugins instance = plugincls() File "/app/plugins/banwords/banwords.py", line 54, in init raise e File "/app/plugins/banwords/banwords.py", line 40, in init with open(banwords_path, "r", encoding="utf-8") as f: FileNotFoundError: [Errno 2] No such file or directory: '/app/plugins/banwords/banwords.txt' [INFO][2023-05-10 05:21:26][init.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'") [INFO][2023-05-10 05:21:26][init.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'") [WARNING][2023-05-10 05:21:28][chatgpt.py:171] - proxy no find, directly request to chatgpt instead [WARNING][2023-05-10 05:21:28][chatgpt.py:171] - proxy no find, directly request to chatgpt instead [INFO][2023-05-10 05:21:28][victorinox.py:86] - use_tools=['meteo-weather', 'terminal', 'python', 'url-get'], params: {'debug': False, 'openai_api_key': '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', 'open_ai_api_base': 'https://api.openai.com/v1';, 'proxy': '', 'request_timeout': 120, 'model_name': 'gpt-3.5-turbo', 'no_default': False, 'top_k_results': 3, 'news_api_key': '', 'bing_subscription_key': '', 'google_api_key': '', 'google_cse_id': '', 'searx_search_host': '', 'wolfram_alpha_appid': '', 'morning_news_api_key': '', 'cuda_device': 'cpu', 'think_depth': 3, 'arxiv_summary': True, 'morning_news_use_llm': False} [INFO][2023-05-10 05:21:28][tool.py:32] - [tool] inited [INFO][2023-05-10 05:21:28][role.py:69] - [Role] inited [INFO][2023-05-10 05:21:28][dungeon.py:56] - [Dungeon] inited [WARNING][2023-05-10 05:21:28][bdunit.py:47] - [BDunit] init failed, ignore [ERROR][2023-05-10 05:21:28][plugin_manager.py:126] - Failed to init BDUNIT, diabled. config.json not found Traceback (most recent call last): File "/app/plugins/plugin_manager.py", line 124, in activate_plugins instance = plugincls() File "/app/plugins/bdunit/bdunit.py", line 48, in init raise e File "/app/plugins/bdunit/bdunit.py", line 36, in init raise Exception("config.json not found") Exception: config.json not found [INFO][2023-05-10 05:21:28][hello.py:23] - [Hello] inited [INFO][2023-05-10 05:21:28][finish.py:23] - [Finish] inited Ready to login. Getting uuid of QR code. Downloading QR code. You can also scan QRCode in any website below: