Repository navigation
feat: 开放群聊互动评估入口并接收反注入防护结果 - #63
Merged
Merged
Conversation
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bond 原有的跨插件接口只能查关系称谓和排行。其他插件没有提交群聊互动供 Bond 评估的入口,也无法通知 Bond 某条消息已经触发反注入防护。
改动
submit_assessment_event_v1(event)。只接收当前 OneBot 群消息;身份、受话对象和消息编号由 Bond 核对。与原生评估共用模型、额度和去重记录。调用方不能指定分值,不新增聊天命令或模型工具。docs/PLUGIN_API.md查看调用方法、状态和限制。升级
两个新入口各有开关,默认关闭。保存设置后重载 Bond。通用入口需要启用自动评估,可能产生模型费用;反注入联动不要求自动评估,也不会额外调用模型。联动需同时安装 AntiPromptInjector 4.2.0,并开启两端对应设置;发送端改动见 AntiPromptInjector PR #5。
验证
上述消息和模型响应均为合成数据,未连接真实 QQ 或付费模型。