Add: 增加了静默等待并整合消息功能#12
Open
Locari wants to merge 1 commit into
Open
Conversation
|
可以将疲劳值加上,不一定每一批消息都要请求判断,可以按几率值忽视部分 |
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.
注意:本request的代码工作完全通过人工智能完成,故难以保证专业性。
原版插件控制bot刷屏的能力尚有不足,因此我结合真实人类的回复习惯对原插件提出了改进思路。
小模型如果判断进行自动回复,那么静默6秒,如果相同用户再次发送信息,重置等待时间,直至该用户在新的6秒内没有发送消息。随后,将这些信息一次性发送给大参数LLM,让LLM将多次输入当作一次输入进行回答,或将有效避免bot连续大量回复导致的“刷屏”现象。