ikechan8370/chatgpt-plugin

【BUG】NTQQ+LLB群聊无法@对话

gitcitt1 opened this issue · 8 comments

请确保提出问题前更新到最新版本!!!!!!!!

已确保项目文件均为最新版本

请在提交issue前确认你已阅读了以下资料:

  • 项目的readme文件
  • 其他已有的Issue

如果你的问题已经在readme或其他Issue中得到解答,我们很可能不会回复。请确保你的问题是一个新的问题。

问题描述

在Linux图形版系统中使用TRSS崽+LinuxNTQQ+LLOneBot3.26.4,安装了最新版chatgpt插件后在群聊中@机器人对话无任何回应(具体LOG在附加消息),然而使用#chat1时却可以正常对话。

预期行为

@bot正常对话

实际行为

bot无反应

复制过程

使用均为最新版的LLOneBot+TRSS+GPT插件
群聊中@机器人对话无任何回应(具体LOG在附加消息),然而使用#chat1时却可以正常对话。

环境

LinuxMint系统,LinuxNTQQ3.2.7-23361,LLOneBot3.26.4最新版,TRSS崽最新版,chatgpt-plugin最新版

可能的解决方案

没有头绪

附加信息

[03:25:44.035][DEBU][ws://127.0.0.1:2536/OneBotv11 <= ::ffff:127.0.0.1:34978-6wXIp8iThGSxaAUVTSrhUA==] 消息 {"self_id":2315586933,"user_id":2246727592,"time":1717097143,"message_id":-2147407954,"real_id":-2147407954,"message_seq":-2147407954,"message_type":"group","sender":{"user_id":2246727592,"nickname":"Ukirala","card":"","role":"owner"},"raw_message":"[CQ:at,qq=2315586933] 你好","font":14,"sub_type":"normal","message":[{"data":{"qq":"2315586933"},"type":"at"},{"data":{"text":" 你好"},"type":"text"}],"message_format":"array","post_type":"message","group_id":317268310}
[03:25:44.036][INFO][2315586933 <= 317268310, 2246727592] 群消息:[SAY.SO, Ukirala] [CQ:at,qq=2315586933] 你好
[03:25:44.093][DEBU][317268310, Ukirala(2246727592)][你好][ChatGpt 对话(chatgpt)][开始处理]
[03:25:44.097][DEBU][317268310, Ukirala(2246727592)][你好][添加消息(getMessage)][开始处理]
[03:25:44.100][TRAC][TRSSYz] 获取 data/messageJson/317268310.json 状态错误 [Error: ENOENT: no such file or directory, stat 'data/messageJson/317268310.json'] {
  [stack]: "Error: ENOENT: no such file or directory, stat 'data/messageJson/317268310.json'",
  [message]: "ENOENT: no such file or directory, stat 'data/messageJson/317268310.json'",
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: 'data/messageJson/317268310.json'
}
[03:25:44.112][TRAC][TRSSYz] 获取 data/messageJson/global.json 状态错误 [Error: ENOENT: no such file or directory, stat 'data/messageJson/global.json'] {
  [stack]: "Error: ENOENT: no such file or directory, stat 'data/messageJson/global.json'",
  [message]: "ENOENT: no such file or directory, stat 'data/messageJson/global.json'",
  errno: -2,
  code: 'ENOENT',
  syscall: 'stat',
  path: 'data/messageJson/global.json'
}
[03:39:17.677][INFO][2315586933 <= 317268310, 2246727592] 群消息:[SAY.SO, Ukirala] /chat1你好
[03:39:17.692][INFO][317268310, Ukirala(2246727592)][#chat1你好][ChatGpt 对话(chatgpt1)][开始处理]
[03:39:17.708][INFO][TRSSYz] chatgpt prompt: 你好
[03:39:17.709][INFO][TRSSYz] {
  previousConversation: {
    sender: {
      user_id: 2246727592,
      nickname: 'Ukirala',
      card: 'Ukirala',
      role: 'owner'
    },
    ctime: '2024-05-30T19:39:17.708Z',
    utime: '2024-05-30T19:39:17.708Z',
    num: 0,
    messages: [ [Object] ],
    conversation: {}
  }
}
[03:39:17.719][MARK][TRSSYz] {
  conversation: {
    messages: [ [Object] ],
    conversationId: undefined,
    parentMessageId: undefined,
    clientId: undefined,
    invocationId: undefined,
    conversationSignature: undefined,
    bingToken: undefined
  }
}
[03:39:17.725][MARK][TRSSYz] using api mode

使用#chat1对话正常调用api

我也遇到了这个问题

同样遇到了此问题,使用#chat以及私聊可以正常对话 ,at无响应

我也遇到了这个问题

请问您现在是否在用什么替补方案吗?太想玩能携带历史纪录的gpt对话了,小号冻结次数过多不太敢用签名了

同样遇到了此问题,使用#chat以及私聊可以正常对话 ,at无响应

请问您现在是否在用什么替补方案吗?太想玩能携带历史纪录的gpt对话了,小号冻结次数过多不太敢用签名了

是因为上层参数改变e的at是string,selfid是number,apps/chat.js490行e.at === e.self_id的全等号改成双等号解决或者等作者PR

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

This issue was closed because it has been stalled for 5 days with no activity.