feat: 暂时禁用group_info

This commit is contained in:
SengokuCola
2025-08-11 22:53:00 +08:00
parent 268b428e8f
commit c5cc1f8770
4 changed files with 10 additions and 16 deletions

View File

@@ -371,10 +371,9 @@ class HeartFChatting:
# 根据概率决定使用哪种模式
if random.random() < normal_mode_probability:
mode = ChatMode.NORMAL
logger.info(f"{self.log_prefix} 基于兴趣值 {interest_value:.2f},概率 {normal_mode_probability:.2f}选择Normal planner模式")
logger.info(f"{self.log_prefix} 有兴趣({interest_value:.2f}),在{normal_mode_probability*100:.0f}%概率下选择回复")
else:
mode = ChatMode.FOCUS
logger.info(f"{self.log_prefix} 基于兴趣值 {interest_value:.2f},概率 {normal_mode_probability:.2f}选择Focus planner模式")
# 创建新的循环信息
cycle_timers, thinking_id = self.start_cycle()
@@ -389,15 +388,15 @@ class HeartFChatting:
await self.expression_learner.trigger_learning_for_chat()
# 群印象构建:仅在群聊中触发
if self.chat_stream.group_info and getattr(self.chat_stream.group_info, "group_id", None):
await self.group_relationship_manager.build_relation(
chat_id=self.stream_id,
platform=self.chat_stream.platform
)
# if self.chat_stream.group_info and getattr(self.chat_stream.group_info, "group_id", None):
# await self.group_relationship_manager.build_relation(
# chat_id=self.stream_id,
# platform=self.chat_stream.platform
# )
if random.random() > global_config.chat.focus_value and mode == ChatMode.FOCUS:
#如果激活度没有激活并且聊天活跃度低有可能不进行plan相当于不在电脑前
#如果激活度没有激活并且聊天活跃度低有可能不进行plan相当于不在电脑前,不进行认真思考
actions = [
{
"action_type": "no_reply",

View File

@@ -284,11 +284,9 @@ class GroupInfo(BaseModel):
group_id = TextField(unique=True, index=True) # 群组唯一ID
group_name = TextField(null=True) # 群组名称 (允许为空)
platform = TextField() # 平台
group_number = TextField(index=True) # 群号
group_impression = TextField(null=True) # 群组印象
short_impression = TextField(null=True) # 群组印象的简短描述
member_list = TextField(null=True) # 群成员列表 (JSON格式)
group_info = TextField(null=True) # 群组基本信息
topic = TextField(null=True) # 群组基本信息
create_time = FloatField(null=True) # 创建时间 (时间戳)
last_active = FloatField(null=True) # 最后活跃时间

View File

@@ -33,9 +33,7 @@ group_info_default = {
"group_id": None,
"group_name": None,
"platform": "unknown",
"group_number": "unknown",
"group_impression": None,
"short_impression": None,
"member_list": [],
"topic":[],
"create_time": None,

View File

@@ -1,5 +1,5 @@
[inner]
version = "6.3.1"
version = "6.3.2"
#----以下是给开发人员阅读的,如果你只是部署了麦麦,不需要阅读----
#如果你想要修改配置文件请递增version的值
@@ -57,7 +57,7 @@ expression_groups = [
talk_frequency = 0.5
# 麦麦活跃度越高麦麦回复越多范围0-1
focus_value = 0.5
# 麦麦的专注度越高越容易持续连续对话范围0-1
# 麦麦的专注度,越高越容易持续连续对话,可能消耗更多token, 范围0-1
max_context_size = 20 # 上下文长度
@@ -99,7 +99,6 @@ talk_frequency_adjust = [
enable_relationship = true # 是否启用关系系统
relation_frequency = 1 # 关系频率,麦麦构建关系的频率
[message_receive]
# 以下是消息过滤,可以根据规则过滤特定消息,将不会读取这些消息
ban_words = [