修复个人公众号私信File "/app/channel/chat_channel.py", line 261xxxxxxx("single…#2451
Open
xingxinag wants to merge 4 commits intozhayujie:masterfrom
Open
修复个人公众号私信File "/app/channel/chat_channel.py", line 261xxxxxxx("single…#2451xingxinag wants to merge 4 commits intozhayujie:masterfrom
xingxinag wants to merge 4 commits intozhayujie:masterfrom
Conversation
…_chat_reply_prefix", "") + reply_text + conf().get("single_chat_reply_suffix", "") 报错
https://gemini.meetcoding.cn/gemini_1.5.html Gemini 1.5 Pro 最佳的多模态模型,具有适用于各种推理任务的功能。中型多模态模型,可以一次处理大量数据,包括 2 小时的视频、19 小时的音频、6 万行代码的代码库或 2,000 页的文本。 输入音频、图片、视频和文本,获取文本回复 生成代码、提取数据、编辑文本等 适用于需要提升广告效果时
https://gemini.meetcoding.cn/gemini_1.5.html Gemini 1.5 Pro 最佳的多模态模型,具有适用于各种推理任务的功能。中型多模态模型,可以一次处理大量数据,包括 2 小时的视频、19 小时的音频、6 万行代码的代码库或 2,000 页的文本。 输入音频、图片、视频和文本,获取文本回复 生成代码、提取数据、编辑文本等 适用于需要提升广告效果时
Collaborator
|
您好,有几个问题讨论一下: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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", "")