[WARNING][2024-06-26 11:53:55][session_manager.py:72] - Exception when counting tokens precisely for prompt: expected string or buffer
[ERROR][2024-06-26 11:54:00][chat_channel.py:302] - Worker return exception: can only concatenate str (not "list") to str
Traceback (most recent call last):
File "/root/anaconda3/envs/chat/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/root/chatgpt-on-wechat/channel/chat_channel.py", line 175, in _handle
reply = self._decorate_reply(context, reply)
File "/root/chatgpt-on-wechat/channel/chat_channel.py", line 260, in _decorate_reply
reply_text = conf().get("single_chat_reply_prefix", "") + reply_text + conf().get("single_chat_reply_suffix", "")
前置确认
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
Linux
运行的python版本是?
python 3.8
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
微信端输入bot获取当前时间返回
问题描述 😯
[WARNING][2024-06-26 11:53:55][session_manager.py:72] - Exception when counting tokens precisely for prompt: expected string or buffer [ERROR][2024-06-26 11:54:00][chat_channel.py:302] - Worker return exception: can only concatenate str (not "list") to str Traceback (most recent call last): File "/root/anaconda3/envs/chat/lib/python3.8/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/root/chatgpt-on-wechat/channel/chat_channel.py", line 175, in _handle reply = self._decorate_reply(context, reply) File "/root/chatgpt-on-wechat/channel/chat_channel.py", line 260, in _decorate_reply reply_text = conf().get("single_chat_reply_prefix", "") + reply_text + conf().get("single_chat_reply_suffix", "")
终端日志 📒