MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    基于GPT3.5的猫娘插件(可以指定群友变猫娘!)03/22更新

    插件发布
    java plugin python gpt3.5 openai
    8
    26
    6076
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • stay_miku
      stay_miku @lixnif 最后由 编辑

      @lixnif 有机会把这一点优化下~
      插件又更新了一点点(第三个更新会比较重要,不然会导致谁都能加机器人好友了)

      1 条回复 最后回复 回复 引用 1
      • X
        xueji-x 最后由 编辑

        大佬大佬~我想让私聊时对方发的话需要有前缀‘chat’ ,Chat GPT才会进行回复,请问我该怎么设置呢,还有“变猫娘”这个功能我可以修改聊天记录里的内容吗?

        stay_miku 1 条回复 最后回复 回复 引用 0
        • stay_miku
          stay_miku @xueji-x 最后由 编辑

          @xueji-x 这些功能我都没加进去(我觉得这种需求应该不多(?))

          1 条回复 最后回复 回复 引用 0
          • 这
            这个小暗不太冷 最后由 编辑

            大佬你好 小白想问问能不能单独管理群聊?比如我想要A群拥有这个GPT的权限,B群不想给予GPT的权限

            1 条回复 最后回复 回复 引用 0
            • 1
              1840377550 最后由 编辑

              大佬救我Exception ignored in thread started by: <function protocol at 0x00000236692754C0>
              Traceback (most recent call last):
              File "D:\QQbot\overflow-2.16.0-2d54df9-SNAPSHOT\OpenAI_Chat3.5-python-server-main\net.py", line 259, in protocol
              type_chat(server, index)
              File "D:\QQbot\overflow-2.16.0-2d54df9-SNAPSHOT\OpenAI_Chat3.5-python-server-main\net.py", line 112, in type_chat
              send_string(server, system.AI_list[index].chat(question)) # 需判断error
              File "D:\QQbot\overflow-2.16.0-2d54df9-SNAPSHOT\OpenAI_Chat3.5-python-server-main\AI.py", line 181, in chat
              message = self.speak()
              File "D:\QQbot\overflow-2.16.0-2d54df9-SNAPSHOT\OpenAI_Chat3.5-python-server-main\AI.py", line 158, in speak
              except openai.error.RateLimitError as e: # 需要单独判断是否触发api速度限制
              AttributeError: module 'openai' has no attribute 'error'

              1 条回复 最后回复 回复 引用 0
              • 这
                这个小暗不太冷 最后由 编辑

                发生异常: AttributeError
                module 'openai' has no attribute 'error'
                File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\AI.py", line 157, in speak
                resp = chat_completion_timeout(select_model, self.messages, self.temperature)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\AI.py", line 34, in chat_completion_timeout
                return openai.ChatCompletion.create(model=model, messages=messages, temperature=temperature)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                openai.lib._old_api.APIRemovedInV1:

                You tried to access openai.ChatCompletion, but this is no longer supported in openai>=1.0.0 - see the README at https://github.com/openai/openai-python for the API.

                You can run openai migrate to automatically upgrade your codebase to use the 1.0.0 interface.

                Alternatively, you can pin your installation to the old version, e.g. pip install openai==0.28

                A detailed migration guide is available here: https://github.com/openai/openai-python/discussions/742

                During handling of the above exception, another exception occurred:

                File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\AI.py", line 158, in speak
                except openai.error.RateLimitError as e: # 需要单独判断是否触发api速度限制
                ^^^^^^^^^^^^
                File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\AI.py", line 181, in chat
                message = self.speak()
                ^^^^^^^^^^^^
                File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\net.py", line 112, in type_chat
                send_string(server, system.AI_list[index].chat(question)) # 需判断error
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "D:\Mirai_Kaguya\OpenAI_Chat3.5-python-server\net.py", line 259, in protocol
                type_chat(server, index)
                AttributeError: module 'openai' has no attribute 'error'

                1 条回复 最后回复 回复 引用 0
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact