You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
这里我修改过后发现还是会报错:
Worker return exception: 'AliQwenBot' object has no attribute 'args'
Traceback (most recent call last):
File "C:\Program Files\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Project\chatgpt-on-wechat\channel\chat_channel.py", line 170, in _handle
reply = self._generate_reply(context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Project\chatgpt-on-wechat\channel\chat_channel.py", line 180, in _generate_reply
e_context = PluginManager().emit_event(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Project\chatgpt-on-wechat\plugins\plugin_manager.py", line 189, in emit_event
instance.handlers[e_context.event](e_context, *args, **kwargs)
File "E:\AI-Project\chatgpt-on-wechat\plugins\plugin_summary\main.py", line 284, in on_handle_context
count, summarys = self._split_messages_to_summarys(records, max_tokens_persession)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\AI-Project\chatgpt-on-wechat\plugins\plugin_summary\main.py", line 176, in _split_messages_to_summarys
self.bot.args["max_tokens"] = 400
^^^^^^^^^^^^^
AttributeError: 'AliQwenBot' object has no attribute 'args'
Activity
felix-9x commentedon Mar 19, 2024
是的我用的智普AI的glm-4,发现不能用总结
whjstc commentedon Jun 13, 2024
main.py 81 行修改成:
fanwenzhu commentedon Dec 24, 2024
用讯飞的api咋改啊?
felix-9x commentedon Dec 24, 2024
按照模型参考
加 const.XUNFEI