基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择GPT3.5/GPT-4o/GPT-o1/ Claude/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Claude/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
29.91k
stars
7.88k
forks
source link
对接fastgtp 4.8.10-alpha一直提示[ERROR][2024-08-29 17:31:10][chat_channel.py:303] - Worker return exception: can only concatenate str (not "list") to str #2275
Open
sdytzjp opened 2 weeks ago
前置确认
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
Linux
运行的python版本是?
other
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
扫码登陆后,发消息,然后日志如下 Please press confirm on your phone. chatgpt-on-wechat | Loading the contact, this may take a little while. chatgpt-on-wechat | <PIL.PngImagePlugin.PngImageFile image mode=1 size=450x450 at 0x7F9FC731F490> chatgpt-on-wechat | [INFO][2024-08-29 17:31:01][wechat_channel.py:131] - Wechat login success, user_id: @42c6cc54764e1eecdf3b3a4f5ec70e0a80be63fef26fcc7a84ac556658a8b3d7, nickname: ~ chatgpt-on-wechat | Start auto replying. chatgpt-on-wechat | [INFO][2024-08-29 17:31:02][bridge.py:68] - create bot chatGPT for chat chatgpt-on-wechat | [INFO][2024-08-29 17:31:02][chat_gpt_bot.py:49] - [CHATGPT] query=hi chatgpt-on-wechat | [ERROR][2024-08-29 17:31:10][chat_channel.py:303] - Worker return exception: can only concatenate str (not "list") to str chatgpt-on-wechat | Traceback (most recent call last): chatgpt-on-wechat | File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run chatgpt-on-wechat | result = self.fn(*self.args, **self.kwargs) chatgpt-on-wechat | File "/app/channel/chat_channel.py", line 176, in _handle chatgpt-on-wechat | reply = self._decorate_reply(context, reply) chatgpt-on-wechat | File "/app/channel/chat_channel.py", line 261, in _decorate_reply chatgpt-on-wechat | reply_text = conf().get("single_chat_reply_prefix", "") + reply_text + conf().get("single_chat_reply_suffix", "") chatgpt-on-wechat | TypeError: can only concatenate str (not "list") to str
问题描述 😯
chatgpt-on-wechat | Please press confirm on your phone. chatgpt-on-wechat | Loading the contact, this may take a little while. chatgpt-on-wechat | <PIL.PngImagePlugin.PngImageFile image mode=1 size=450x450 at 0x7F9FC731F490> chatgpt-on-wechat | [INFO][2024-08-29 17:31:01][wechat_channel.py:131] - Wechat login success, user_id: @42c6cc54764e1eecdf3b3a4f5ec70e0a80be63fef26fcc7a84ac556658a8b3d7, nickname: ~ chatgpt-on-wechat | Start auto replying. chatgpt-on-wechat | [INFO][2024-08-29 17:31:02][bridge.py:68] - create bot chatGPT for chat chatgpt-on-wechat | [INFO][2024-08-29 17:31:02][chat_gpt_bot.py:49] - [CHATGPT] query=hi chatgpt-on-wechat | [ERROR][2024-08-29 17:31:10][chat_channel.py:303] - Worker return exception: can only concatenate str (not "list") to str chatgpt-on-wechat | Traceback (most recent call last): chatgpt-on-wechat | File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run chatgpt-on-wechat | result = self.fn(*self.args, **self.kwargs) chatgpt-on-wechat | File "/app/channel/chat_channel.py", line 176, in _handle chatgpt-on-wechat | reply = self._decorate_reply(context, reply) chatgpt-on-wechat | File "/app/channel/chat_channel.py", line 261, in _decorate_reply chatgpt-on-wechat | reply_text = conf().get("single_chat_reply_prefix", "") + reply_text + conf().get("single_chat_reply_suffix", "") chatgpt-on-wechat | TypeError: can only concatenate str (not "list") to str ^CGracefully stopping... (press Ctrl+C again to force)
终端日志 📒