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
31.65k stars 8.23k forks source link

TOOL插件启用失败 #2414

Open 0xDkd opened 19 hours ago

0xDkd commented 19 hours ago

前置确认

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

操作系统类型?

Docker

运行的python版本是?

python 3.7

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

tool插件一直显示未启用,在godcmd输入#enablep tool ,启用该插件

问题描述 😯

微信无回复,后续发内容也不再回复

终端日志 📒

[DEBUG][2024-12-03 16:11:59][plugin.py:21] - loading plugin config, plugin_config_path=./plugins/tool/config.json, exist=False
[DEBUG][2024-12-03 16:11:59][plugin.py:28] - loading plugin config, plugin_name=tool, conf=None
Unexpected sync check result: window.synccheck={retcode:"1102",selector:"0"}
[WARNING][2024-12-03 16:12:04][tool.py:27] - [tool] init failed, ignore 
[WARNING][2024-12-03 16:12:04][plugin_manager.py:150] - Failed to init TOOL, diabled. config.json not found
[DEBUG][2024-12-03 16:12:04][role.py:62] - [Role] no role found for tag comments 
[INFO][2024-12-03 16:12:04][role.py:69] - [Role] inited
[INFO][2024-12-03 16:12:04][dungeon.py:56] - [Dungeon] inited
[DEBUG][2024-12-03 16:12:04][plugin.py:21] - loading plugin config, plugin_config_path=./plugins/hello/config.json, exist=False
[DEBUG][2024-12-03 16:12:04][plugin.py:28] - loading plugin config, plugin_name=Hello, conf=None
[DEBUG][2024-12-03 16:12:04][hello.py:119] - No Hello plugin config.json, use plugins/hello/config.json.template
[INFO][2024-12-03 16:12:04][hello.py:38] - [Hello] inited
[INFO][2024-12-03 16:12:04][finish.py:23] - [Finish] inited
[DEBUG][2024-12-03 16:12:04][godcmd.py:421] - [Godcmd] admin command: enablep by @7975d55a2c91911ed76899dc78dad6174e9a28dd6f7539a5872791819bbdb806
[DEBUG][2024-12-03 16:12:04][plugin_manager.py:194] - Plugin GODCMD breaked event Event.ON_HANDLE_CONTEXT
[DEBUG][2024-12-03 16:12:04][chat_channel.py:172] - [chat_channel] ready to decorate reply: Reply(type=ERROR, content=插件开启失败)
[DEBUG][2024-12-03 16:12:04][chat_channel.py:284] - [chat_channel] ready to send reply: Reply(type=ERROR, content=[ERROR]
插件开启失败), context: Context(type=TEXT, content=#enablep  tool, kwargs={'isgroup': False, 'msg': <channel.wechat.wechat_message.WechatMessage object at 0x7f6827b3d0>, 'origin_ctype': <ContextType.TEXT: 1>, 'openai_api_key': None, 'gpt_model': None, 'session_id': '@7975d55a2c91911ed76899dc78dad6174e9a28dd6f7539a5872791819bbdb806', 'receiver': '@7975d55a2c91911ed76899dc78dad6174e9a28dd6f7539a5872791819bbdb806'})
[INFO][2024-12-03 16:12:04][wechat_channel.py:222] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR]
插件开启失败), receiver=@7975d55a2c91911ed76899dc78dad6174e9a28dd6f7539a5872791819bbdb806
0xDkd commented 19 hours ago

后续,根据报错提示手动复制一个config.json,成功开启,但是微信端再发消息没有任何回复,debug页面也看不到任何日志输出

JLWY2233 commented 8 minutes ago

同样问题,求解