修复个人公众号私信File "/app/channel/chat_channel.py", line 261xxxxxxx("single… #2451
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…_chat_reply_prefix", "") + reply_text + conf().get("single_chat_reply_suffix", "") 报错
[INFO][2025-01-04 13:23:10][google_gemini_bot.py:60] - [Gemini] reply=嘟嘟嘟! 😄 我现在准备接收你的指令了。你想让我做什么呢?
修复这个报错
chatgpt-on-wechat-20250104214403.log
[ERROR][2025-01-04 13:23:10][wechatmp_channel.py:301] - [wechatmp] Fail to generate reply to user, msgId=24853501756706936, exception=can only concatenate list (not "str") to list
Traceback (most recent call last):
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/app/channel/chat_channel.py", line 176, in _handle
reply = self._decorate_reply(context, reply)
File "/app/channel/chat_channel.py", line 261, in _decorate_reply
reply_text = conf().get("single_chat_reply_prefix", "") + reply_text + conf().get("single_chat_reply_suffix", "")