chatgpt-on-wechat icon indicating copy to clipboard operation
chatgpt-on-wechat copied to clipboard

无法启用tool工具

Open WDAhyhy opened this issue 1 year ago • 4 comments

前置确认

  • [X] 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

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

  • [X] 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

python 3.10

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

使用#auth指令进入管理者模式之后,#plist后显示的有tool工具且未启用,#enablep tool后启动失败

问题描述 😯

无法初始化tool,tool整个文件夹是clone过来的,从未修改

终端日志 📒

<此处粘贴终端日志>

[INFO][2023-12-31 13:05:52][init.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'") [INFO][2023-12-31 13:05:52][init.py:29] - [visual_dl] init failed, error_info: ModuleNotFoundError("No module named 'torch'") [WARNING][2023-12-31 13:05:52][plugin_manager.py:148] - Failed to init TOOL, diabled. Did not find llm_api_key, please add an environment variable LLM_API_KEY which contains it, or pass llm_api_key as a named parameter. [INFO][2023-12-31 13:05:52][wechat_channel.py:194] - [WX] sendMsg=Reply(type=ERROR, content=[ERROR] 插件开启失败), receiver=@9fe959cdc24f25fa65be839d90a05cc1c91d05a06a1612b2ee8de6f3b052775d

WDAhyhy avatar Dec 31 '23 05:12 WDAhyhy

同样遇到这个问题

fatbun avatar Jan 02 '24 12:01 fatbun

同样遇到这个问题,请问解决了吗?

enjoyour avatar May 17 '24 07:05 enjoyour

怎么解决的,大佬

jiandamplus avatar May 20 '24 03:05 jiandamplus

同样的问题,关键是LLM_API_KEY都配置了,咋还是找不到

linccee avatar May 25 '24 03:05 linccee

使用app.py启动试试,是不是用其它方式启动导致获取不到配置了

ouyanghuangzheng avatar Dec 19 '24 05:12 ouyanghuangzheng

我也一样

xingxinag avatar Jan 01 '25 09:01 xingxinag

Screenshot_2025-01-02-11-04-12-850_com tencent mm tool.py.txt 是他代码有问题,我解决了后缀改一下直接替换即可

xingxinag avatar Jan 02 '25 03:01 xingxinag