Open wangdezhong opened 9 months ago
在 https://github.com/zhayujie/chatgpt-on-wechat/issues/956 发现类似问题 不知是否wenxin与xunfei也是此问题
app/plugins/role.py,第102行有一段判断大模型的代码:
if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI]: return
将其改成以下代码就可以了:
if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI,const.XUNFEI,const.BAIDU]: return
app/plugins/role.py,第102行有一段判断大模型的代码:
if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI]: return
将其改成以下代码就可以了:if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI,const.XUNFEI,const.BAIDU]: return
ok
前置确认
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
MacOS
运行的python版本是?
python 3.8
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
model 为xunfei与wenxin时 角色扮演插件报错 未知插件命令
问题描述 😯
终端日志 📒
[DEBUG][2023-09-26 16:40:01][hello.py:48] - [Hello] on_handle_context. content: $角色 佛祖 [DEBUG][2023-09-26 16:40:01][plugin_manager.py:187] - Plugin FINISH triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2023-09-26 16:40:01][finish.py:30] - [Finish] on_handle_context. content: $角色 佛祖 [DEBUG][2023-09-26 16:40:01][plugin_manager.py:192] - Plugin FINISH breaked event Event.ON_HANDLE_CONTEXT [DEBUG][2023-09-26 16:40:01][chat_channel.py:157] - [WX] ready to decorate reply: Reply(type=ERROR, content=未知插件命令 查看插件命令列表请输入#help 插件名 ) [DEBUG][2023-09-26 16:40:01][chat_channel.py:263] - [WX] ready to send reply: Reply(type=ERROR, content=[ERROR] 未知插件命令 查看插件命令列表请输入#help 插件名 ), context: Context(type=TEXT, content=$角色 佛祖, kwargs={'isgroup': False, 'msg': <channel.wechat.wechat_message.WechatMessage object at 0x107c70790>, 'origin_ctype': <ContextType.TEXT: 1>, 'openai_api_key': None, 'gpt_model': None, 'session_id': '@30478d060cf1bb5a297d6e3836086bf7', 'receiver': '@30478d060cf1bb5a297d6e3836086bf7'}) [INFO][2023-09-26 16:40:01][wechat_channel.py:189] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR] 未知插件命令 查看插件命令列表请输入#help 插件名 ), receiver=@30478d060cf1bb5a297d6e3836086bf7 [DEBUG][2023-09-26 16:40:01][chat_channel.py:279] - Worker return success, session_id = @30478d060cf1bb5a297d6e3836086bf7