Skip to content

大大!目前好像只支持了openai?其他模型都不能使用 #3

Open

Description

@moyess

image
这里我修改过后发现还是会报错:
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

  1. felix-9x commented on Mar 19, 2024

    @felix-9x

    是的我用的智普AI的glm-4,发现不能用总结

  2. whjstc commented on Jun 13, 2024

    @whjstc

    main.py 81 行修改成:

        if btype not in [const.OPEN_AI, const.CHATGPT, const.CHATGPTONAZURE, const.LINKAI, const.ZHIPU_AI]:
    
  3. fanwenzhu commented on Dec 24, 2024

    @fanwenzhu

    用讯飞的api咋改啊?

  4. felix-9x commented on Dec 24, 2024

    @felix-9x

    用讯飞的api咋改啊?

    按照模型参考

    加 const.XUNFEI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions