RockChinQ / QChatGPT

😎高稳定性、🧩支持扩展、🦄多模态的 ChatGPT QQ / QQ频道 / One Bot 机器人🤖 | 支持 OpenAI GPT、Claude、Gemini Pro、DeepSeek、Moonshot(Kimi)、gpt4free、One API、Ollama、dify 的 QQ / QQ频道 / OneBot 机器人 / Agent 平台
https://q.rkcn.top
GNU Affero General Public License v3.0
4.39k stars 335 forks source link

[BUG]前缀忽略功能似乎失效了 #860

Closed cnrenil closed 3 months ago

cnrenil commented 3 months ago

消息平台适配器

yiri-mirai(Mirai)

运行环境

Debian Testing JVM 17

QChatGPT版本

[bot] 当前版本: v3.3.0.1

异常情况

在私聊窗口中发送/help会触发机器人回复。pipeline是删掉重新生成的默认配置文件,前缀忽略已经设置了。

Screenshot_20240730_220839 如图 配置文件pipeline.json如下:

{
    "access-control":{
        "mode": "blacklist",
        "blacklist": [],
        "whitelist": []
    },
    "respond-rules": {
        "default": {
            "at": true,
            "prefix": [
                "/ai", "!ai", "!ai", "ai"
            ],
            "regexp": [],
            "random": 0.0
        }
    },
    "income-msg-check": true,
    "ignore-rules": {
        "prefix": ["/"],
        "regexp": []
    },
    "check-sensitive-words": true,
    "baidu-cloud-examine": {
        "enable": false,
        "api-key": "",
        "api-secret": ""
    },
    "rate-limit": {
        "strategy": "drop",
        "algo": "fixwin",
        "fixwin": {
            "default": {
                "window-size": 60,
                "limit": 60
            }
        }
    },
    "msg-truncate": {
        "method": "round",
        "round": {
            "max-round": 10
        }
    }
}

启用的插件

[bot] 所有插件(0):

cnrenil commented 3 months ago

Duplicate #854