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.57k stars 8.01k forks source link

企业微信跑不起来 #1370

Closed slin1972 closed 1 year ago

slin1972 commented 1 year ago

前置确认

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

操作系统类型?

Docker

运行的python版本是?

python 3.7

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

Latest Release

运行的channel类型是?

other

复现步骤 🕹

image image image image

问题描述 😯

通过docker部署,修改config.json为企业微信, 然后再企业微信里面发送消息,可以看到最后一个图有打印请求日志,但是没有响应,也没有日志

终端日志 📒

[INFO][2023-08-18 01:39:44][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish [INFO][2023-08-18 01:39:44][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd [DEBUG][2023-08-18 01:39:44][plugin_manager.py:177] - plugins.json config={'plugins': SortedDict({'Godcmd': {'enabled': True, 'priority': 999}, 'Keyword': {'enabled': True, 'priority': 900}, 'Banwords': {'enabled': False, 'priority': 100}, 'tool': {'enabled': True, 'priority': 0}, 'linkai': {'enabled': True, 'priority': 0}, 'Role': {'enabled': True, 'priority': 0}, 'Dungeon': {'enabled': True, 'priority': 0}, 'BDunit': {'enabled': False, 'priority': 0}, 'Hello': {'enabled': True, 'priority': -1}, 'Finish': {'enabled': True, 'priority': -999}}, sort_func=, reverse=True)} [DEBUG][2023-08-18 01:39:44][plugin.py:24] - loading plugin config, plugin_name=Godcmd, conf={'password': '', 'admin_users': []} [INFO][2023-08-18 01:39:44][godcmd.py:190] - [Godcmd] 因未设置口令,本次的临时口令为7140。 [INFO][2023-08-18 01:39:44][godcmd.py:205] - [Godcmd] inited [DEBUG][2023-08-18 01:39:44][keyword.py:34] - [keyword]加载配置文件/app/plugins/keyword/config.json [INFO][2023-08-18 01:39:44][keyword.py:40] - [keyword] {} [INFO][2023-08-18 01:39:44][keyword.py:42] - [keyword] inited. [DEBUG][2023-08-18 01:39:44][plugin.py:24] - loading plugin config, plugin_name=tool, conf=None [INFO][2023-08-18 01:39:44][init.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'") [INFO][2023-08-18 01:39:44][init.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'") [INFO][2023-08-18 01:39:44][chatgpt.py:186] - proxy no find, directly request to chatgpt instead [INFO][2023-08-18 01:39:44][chatgpt.py:186] - proxy no find, directly request to chatgpt instead [INFO][2023-08-18 01:39:44][victorinox.py:86] - use_tools=['meteo-weather', 'python', 'url-get', 'terminal'], params: {'debug': False, 'openai_api_key': 'YOUR API KEY', 'open_ai_api_base': 'https://api.openai.com/v1', 'deployment_id': '', '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, 'llm_api_key': 'YOUR API KEY', 'llm_api_base_url': 'https://api.openai.com/v1'} [INFO][2023-08-18 01:39:44][tool.py:31] - [tool] inited [DEBUG][2023-08-18 01:39:44][role.py:62] - [Role] no role found for tag comments [INFO][2023-08-18 01:39:44][role.py:69] - [Role] inited [DEBUG][2023-08-18 01:39:44][plugin.py:24] - loading plugin config, plugin_name=linkai, conf=None [INFO][2023-08-18 01:39:44][linkai.py:23] - [LinkAI] inited [INFO][2023-08-18 01:39:44][dungeon.py:56] - [Dungeon] inited [INFO][2023-08-18 01:39:44][hello.py:23] - [Hello] inited [INFO][2023-08-18 01:39:44][finish.py:23] - [Finish] inited http://0.0.0.0:10080/ [INFO][2023-08-18 01:40:04][wechatcomapp_channel.py:147] - [wechatcom] receive params: <Storage {'timestamp': '1692322804', 'nonce': '1692184754', 'msg_signature': '957868b13ea31bd66bc8e46339ea90c5d11ef738'}> [DEBUG][2023-08-18 01:40:04][wechatcomapp_channel.py:156] - [wechatcom] receive message: <![CDATA[ww9d5ec59242523e1b]]><![CDATA[SenLin]]>1692322804<![CDATA[text]]><![CDATA[1]]>72684710981320842681000043, msg= TextMessage({'ToUserName': 'ww9d5ec59242523e1b', 'FromUserName': 'SenLin', 'CreateTime': '1692322804', 'MsgType': 'text', 'Content': '1', 'MsgId': '7268471098132084268', 'AgentID': '1000043'}) 172.21.0.1:52400 - - [18/Aug/2023 01:40:04] "HTTP/1.1 POST /wxcomapp" - 200 OK

slin1972 commented 1 year ago

去掉唤醒词即可