zhayujie/bot-on-anything

Bard失效了吗?

KimhonWong opened this issue · 1 comments

[ERROR][2023-12-15 07:19:31][wechat_channel.py:154] - invalid syntax (bard_bot.py, line 51)
Traceback (most recent call last):
File "/root/bot-on-anything/channel/wechat/wechat_channel.py", line 147, in _do_send
reply = super().build_reply_content(e_context["context"], e_context["args"])
File "/root/bot-on-anything/channel/channel.py", line 31, in build_reply_content
return Bridge().fetch_reply_content(query, context)
File "/root/bot-on-anything/bridge/bridge.py", line 18, in fetch_reply_content
return model_factory.create_bot(type).reply(query, context)
File "/root/bot-on-anything/model/model_factory.py", line 33, in create_bot
from model.google.bard_model import BardModel
File "/root/bot-on-anything/model/google/bard_model.py", line 2, in
from .bard_bot import BardBot
File "/root/bot-on-anything/model/google/bard_bot.py", line 51
if not (content := json.loads(resp.content.splitlines()[3])[0][2]):

配置完config的bard cookie和wechat,对话就出错了

同问