zhayujie / chatgpt-on-wechat

基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择GPT3.5/GPT-4o/GPT-o1/ Claude/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Claude/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
https://docs.link-ai.tech/cow
MIT License
30.6k stars 8.01k forks source link

railway企业微信应用号一键部署失败,回调不通过,报错无法找到config.json #1213

Closed LongYi8013609 closed 1 year ago

LongYi8013609 commented 1 year ago

前置确认

⚠️ 搜索issues中是否已存在类似问题

操作系统类型?

Railway

运行的python版本是?

python 3.10

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

other

复现步骤 🕹

railway企业微信应用号一键部署

问题描述 😯

railway企业微信应用号一键部署,部署后不显示登录二维码,报错无法找到config.json

终端日志 📒

[INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: wechatcomapp_agent_id=1000002 [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: wechatcomapp_token=36r7HMnxwY0Ox6yRc1Mwsg4dv [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: single_chat_prefix=[""] [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: single_chat_reply_prefix=[bot] [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: wechatcom_corp_id=ww9f9e48102b235f50 [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: speech_recognition=True [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: image_create_prefix=["画", "看", "找"] [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: wechatcomapp_port=80 [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: voice_reply_voice=False [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: wechatcomapp_secret=1o4GQZ4CVNyEzyfHvECiQqdP69G9E4YvuFRD4MwncZA [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: open_ai_api_key=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 [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: wechatcomapp_aes_key=MbOocn16AggWA4XqE4cMcIMDlg79gRUoPAEFDaXJCQF [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: expires_in_seconds=3600 [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: conversation_max_tokens=1000 [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: model=gpt-3.5-turbo [INFO][2023-06-05 03:22:44][config.py:180] - [INIT] override config by environ args: channel_type=wechatcom_app [INFO][2023-06-05 03:22:44][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': '[bot] ', 'group_chat_prefix': ['@bot'], 'group_name_white_list': ['ChatGPT测试群', 'ChatGPT测试群2'], 'group_chat_in_one_session': ['ChatGPT测试群'], '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 查看详细指令。', 'wechatcomapp_agent_id': 1000002, 'wechatcomapp_token': '36r7HMnxwY0Ox6yRc1Mwsg4dv', 'wechatcom_corp_id': 'ww9f9e48102b235f50', 'wechatcomapp_port': 80, 'wechatcomapp_secret': '1o4GQZ4CVNyEzyfHvECiQqdP69G9E4YvuFRD4MwncZA', 'wechatcomapp_aes_key': 'MbOocn16AggWA4XqE4cMcIMDlg79gRUoPAEFDaXJCQF', 'channel_type': 'wechatcom_app'} [INFO][2023-06-05 03:22:44][config.py:145] - [Config] User datas file not found, ignore. ww9f9e48102b235f50 1o4GQZ4CVNyEzyfHvECiQqdP69G9E4YvuFRD4MwncZA 1000002 36r7HMnxwY0Ox6yRc1Mwsg4dv MbOocn16AggWA4XqE4cMcIMDlg79gRUoPAEFDaXJCQF [INFO][2023-06-05 03:22:47][wechatcomapp_channel.py:39] - [wechatcom] init: corp_id: ww9f9e48102b235f50, secret: 1o4GQZ4CVNyEzyfHvECiQqdP69G9E4YvuFRD4MwncZA, agent_id: 1000002, token: 36r7HMnxwY0Ox6yRc1Mwsg4dv, aes_key: MbOocn16AggWA4XqE4cMcIMDlg79gRUoPAEFDaXJCQF [INFO][2023-06-05 03:22:47][plugin_manager.py:50] - Loading plugins config... [INFO][2023-06-05 03:22:47][plugin_manager.py:66] - Scaning plugins ... [INFO][2023-06-05 03:22:47][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit [INFO][2023-06-05 03:22:47][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role chatgpt-tool-hub version: 0.4.3 [INFO][2023-06-05 03:22:51][plugin_manager.py:41] - Plugin tool_v0.4 registered, path=./plugins/tool [INFO][2023-06-05 03:22:51][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello [INFO][2023-06-05 03:22:51][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish [INFO][2023-06-05 03:22:51][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd [INFO][2023-06-05 03:22:51][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords [INFO][2023-06-05 03:22:51][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon [INFO][2023-06-05 03:22:51][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword [INFO][2023-06-05 03:22:51][plugin_manager.py:101] - Plugin GODCMD not found in pconfig, adding to pconfig... [INFO][2023-06-05 03:22:51][plugin_manager.py:101] - Plugin KEYWORD not found in pconfig, adding to pconfig... [INFO][2023-06-05 03:22:51][plugin_manager.py:101] - Plugin BANWORDS not found in pconfig, adding to pconfig... [INFO][2023-06-05 03:22:51][plugin_manager.py:101] - Plugin TOOL not found in pconfig, adding to pconfig... [INFO][2023-06-05 03:22:51][plugin_manager.py:101] - Plugin ROLE not found in pconfig, adding to pconfig... [INFO][2023-06-05 03:22:51][plugin_manager.py:101] - Plugin DUNGEON not found in pconfig, adding to pconfig... [INFO][2023-06-05 03:22:51][plugin_manager.py:101] - Plugin BDUNIT not found in pconfig, adding to pconfig... [INFO][2023-06-05 03:22:51][plugin_manager.py:101] - Plugin HELLO not found in pconfig, adding to pconfig... [INFO][2023-06-05 03:22:51][plugin_manager.py:101] - Plugin FINISH not found in pconfig, adding to pconfig... [INFO][2023-06-05 03:22:51][godcmd.py:181] - [Godcmd] 因未设置口令,本次的临时口令为3056。 [INFO][2023-06-05 03:22:51][godcmd.py:196] - [Godcmd] inited [INFO][2023-06-05 03:22:51][keyword.py:40] - [keyword] {} [INFO][2023-06-05 03:22:51][keyword.py:42] - [keyword] inited. [WARNING][2023-06-05 03:22:51][banwords.py:53] - [Banwords] init failed, ignore or see https://github.com/zhayujie/chatgpt-on-wechat/tree/master/plugins/banwords . [ERROR][2023-06-05 03:22:51][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-06-05 03:22:51][init.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'") [INFO][2023-06-05 03:22:51][init.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'") [WARNING][2023-06-05 03:22:53][chatgpt.py:171] - proxy no find, directly request to chatgpt instead [WARNING][2023-06-05 03:22:53][chatgpt.py:171] - proxy no find, directly request to chatgpt instead [INFO][2023-06-05 03:22:53][victorinox.py:86] - use_tools=['terminal', 'meteo-weather', 'python', 'url-get'], params: {'debug': False, 'openai_api_key': 'sk-LQoz7hOpff9cfaZ9ms60T3BlKwmZD4qbfrMsB5UokXq', '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-06-05 03:22:53][tool.py:32] - [tool] inited [INFO][2023-06-05 03:22:53][role.py:69] - [Role] inited [INFO][2023-06-05 03:22:53][dungeon.py:56] - [Dungeon] inited [WARNING][2023-06-05 03:22:53][bdunit.py:47] - [BDunit] init failed, ignore [ERROR][2023-06-05 03:22:53][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-06-05 03:22:53][hello.py:23] - [Hello] inited [INFO][2023-06-05 03:22:53][finish.py:23] - [Finish] inited

lanvent commented 1 year ago

企业微信应用号部署并不会显示二维码,它需要你在企业微信的后台部署

LongYi8013609 commented 1 year ago

确实是无法部署了,我之前也是运行好好的,突然就断了,然后部署不成功了