MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接
    1. 主页
    2. 这个小暗不太冷
    这
    • 资料
    • 关注 0
    • 粉丝 0
    • 主题 0
    • 帖子 11
    • 最佳 0
    • 有争议的 0
    • 群组 0

    这个小暗不太冷

    @这个小暗不太冷

    0
    声望
    3
    资料浏览
    11
    帖子
    0
    粉丝
    0
    关注
    注册时间 最后登录

    这个小暗不太冷 取消关注 关注

    这个小暗不太冷 发布的最新帖子

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

      发生异常: 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'

      发布在 插件发布
      这
      这个小暗不太冷
    • RE: 基于GPT3.5的猫娘插件(可以指定群友变猫娘!)03/22更新

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

      发布在 插件发布
      这
      这个小暗不太冷
    • RE: ChatLearning——让bot学会你的群聊

      @Anstiya 实在不好意思 犯了这样的低级错误!非常感谢大佬手把手支援!萌新还有一个小疑问,,不知道大佬有没有遇到过机器人在命令提示框内有正常回复消息,但是群聊/私聊 发不出响应的消息出来 1.png

      发布在 插件发布
      这
      这个小暗不太冷
    • RE: ChatLearning——让bot学会你的群聊

      @Anstiya 根据您的指示,正常运行了 但是还是出现了一开始的链接不上http的问题。我有试着尝试重新下载GitHub上的这个插件项目并重新编写了data.json文件,,,1.png

      发布在 插件发布
      这
      这个小暗不太冷
    • RE: ChatLearning——让bot学会你的群聊

      @Anstiya 不好意思 我从mirai-api-http-2.10.0切换到了mirai-api-http 2.9.1,下载setting.yml之后进行启动mcl就产生了报错
      2024-03-08 13:21:09 I/fix-protocol-version: protocol commands: info, load, fetch
      example:
      protocol info
      protocol load ANDROID_PHONE
      protocol fetch ANDROID_PAD 8.9.63

      2024-03-08 13:21:09 I/fix-protocol-version: 当前各登录协议版本日期:
      ANDROID_PHONE 8.9.58.11170 2023-05-19T12:35+09:00
      ANDROID_PAD 8.9.58.11170 2023-05-19T12:35+09:00
      ANDROID_WATCH 2.0.8 2019-06-03T21:25:31+09:00
      IPAD 8.9.50.611 2023-02-16T16:10:14+09:00
      MACOS 6.8.2.21241 2022-03-14T12:11:35+09:00

      2024-03-08 13:21:09 I/fix-protocol-version: 当前签名服务配置信息:
      v8.9.58 by kiliokuara/magic-signer-guide from http://127.0.0.1:8888

      2024-03-08 13:21:09 E/mirai-api-http: net.mamoe.yamlkt.YamlDecodingException: There must be a COLON between class key and value but found null for 'setting'
      ...ketAdapter(Experimental) 没法正常工作.
      ^ at line 20, column 75

      net.mamoe.yamlkt.YamlDecodingException: There must be a COLON between class key and value but found null for 'setting'
      ...ketAdapter(Experimental) 没法正常工作.
      ^ at line 20, column 75

          at net.mamoe.yamlkt.internal.YamlUtils__ContextualExceptionKt.contextualDecodingException(ContextualException.kt:154)
          at net.mamoe.yamlkt.internal.YamlUtils.contextualDecodingException(Unknown Source)
          at net.mamoe.yamlkt.internal.YamlUtils__ContextualExceptionKt.contextualDecodingException$default(ContextualException.kt:128)
          at net.mamoe.yamlkt.internal.YamlUtils.contextualDecodingException$default(Unknown Source)
          at net.mamoe.yamlkt.internal.YamlDecoder$BlockClassDecoder.decodeElementIndex(YamlDecoder.kt:294)
          at net.mamoe.mirai.console.internal.data.PluginDataImpl$updaterSerializer$1.deserialize(PluginDataImpl.kt:78)
          at net.mamoe.mirai.console.internal.data.PluginDataImpl$updaterSerializer$1.deserialize(PluginDataImpl.kt:51)
          at net.mamoe.yamlkt.Yaml.decodeFromString(Yaml.kt:162)
          at net.mamoe.mirai.console.internal.data.MultiFilePluginDataStorageImpl.load(MultiFilePluginDataStorageImpl.kt:49)
          at net.mamoe.mirai.console.plugin.jvm.AbstractJvmPlugin.reloadPluginConfig(AbstractJvmPlugin.kt:77)
          at mirai-api-http-2.9.1.mirai2.jar//net.mamoe.mirai.api.http.HttpApiPluginBase.onEnable(HttpApiPluginBase.kt:29)
          at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnEnable$mirai_console(JvmPluginInternal.kt:244)
          at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:393)
          at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.enable(BuiltInJvmPluginLoaderImpl.kt:40)
          at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt)
          at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.enable(JvmPluginLoader.kt:54)
          at net.mamoe.mirai.console.plugin.PluginManager.enablePlugin(PluginManager.kt:173)
          at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.enableAllLoadedPlugins$mirai_console(PluginManagerImpl.kt:193)
          at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:360)
          at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:512)
          at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:182)
          at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:181)
          at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:59)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:568)
          at org.itxtech.mcl.Utility.bootJars(Utility.java:86)
          at org.itxtech.mcl.Utility.bootJars(Utility.java:76)
          at org.itxtech.mcl.Utility.bootMirai(Utility.java:98)
          at org.itxtech.mcl.module.builtin.Boot.boot(Boot.java:113)
          at org.itxtech.mcl.module.ModuleManager.phaseBoot(ModuleManager.java:123)
          at org.itxtech.mcl.Loader.lambda$start$4(Loader.java:196)
          at org.itxtech.mcl.Loader.tryCatching(Loader.java:151)
          at org.itxtech.mcl.Loader.start(Loader.java:196)
          at org.itxtech.mcl.Loader.main(Loader.java:84)
      
      发布在 插件发布
      这
      这个小暗不太冷
    • RE: ChatLearning——让bot学会你的群聊

      @Anstiya 两个端口也都改成了您的设置,但还是连接不上 会不会是出在了其他方面呢?(个人猜测)1.png

      发布在 插件发布
      这
      这个小暗不太冷
    • RE: ChatLearning——让bot学会你的群聊

      @Anstiya 我按照您的吩咐把host改成了localhost或者是127.0.0.1,其他文件没动 还是会出现无法连接呢!1.png

      发布在 插件发布
      这
      这个小暗不太冷
    • RE: ChatLearning——让bot学会你的群聊

      您好 我想我的配置按理说应该没有出错,我也看到评论区其他人跟我出现同样的问题 我目前已知的方法都尝试了一遍 更换0.0.0.0,127.0.0.1,localhost等等 但还是无法连接 可以帮我一下吗!3.png 2.png 1.png

      发布在 插件发布
      这
      这个小暗不太冷
    • RE: MarryPlugin 娶群友插件

      @firefairy 非常感谢!辛苦了

      发布在 插件发布
      这
      这个小暗不太冷
    • RE: 学习群友聊天的机器人XiaoFeimian

      Welcome to use DaFeimian python exe -- XiaoFeimian Chat Learning
      欢迎使用大肥免python程序——小肥免聊天学习
      Tips: Idk if Chinese can run the display smoothly, so some content uses English prompts.
      我不知道中文能不能顺利运行显示,所以一些内容使用的是英文提示,肥免懒得设置编码
      Config file loading completed. Version is 1.0.3
      Starting config file simple verification. Maybe have other error what can not test.
      Starting Completed
      Start connect http

      key:
      host: localhost
      port: 23750
      qq: 3567749021
      session:

      <Response [200]>
      Http is connected.
      Wait 10 seconds to start the command.
      Loading command list.
      XiaoFeimian Command:Robot has 1 messages not read.
      9999 0
      Not learning msg.
      Robot has 1 messages not read.
      Not learning msg.
      Robot has 1 messages not read.
      9999 0
      Not learning msg.
      Robot has 1 messages not read.
      Not learning msg.
      Robot has 1 messages not read.
      Not learning msg.
      Robot has 1 messages not read.
      Not learning msg.
      Robot has 1 messages not read.
      9999 0
      Not learning msg.
      Robot has 1 messages not read.
      9999 0
      Not learning msg.
      Robot has 1 messages not read.
      9999 0
      Not learning msg.
      Robot has 1 messages not read.
      Not learning msg.
      Robot has 1 messages not read.
      Not learning msg.
      Robot has 1 messages not read.
      Not learning msg.
      Robot has 1 messages not read.
      9999 0
      Not learning msg.

      您好 我似乎是成功运行了 但是我在.exe程序根目录下并没有生成config的配置文件 请问该如何解决呢?

      发布在 其他项目发布
      这
      这个小暗不太冷