remove:人格的兴趣配置项移动到planner prompt中

This commit is contained in:
SengokuCola
2025-12-08 19:24:04 +08:00
parent 910c73be73
commit a0ba073cfb
7 changed files with 311 additions and 24 deletions

View File

@@ -311,7 +311,6 @@ class BrainChatting:
current_available_actions=available_actions,
chat_content_block=chat_content_block,
message_id_list=message_id_list,
interest=global_config.personality.interest,
prompt_key="brain_planner_prompt_react",
)
continue_flag, modified_message = await events_manager.handle_mai_events(

View File

@@ -40,7 +40,6 @@ def init_prompt():
"""
{time_block}
{name_block}
你的兴趣是:{interest}
{chat_context_description},以下是具体的聊天内容
**聊天内容**
@@ -305,7 +304,6 @@ class BrainPlanner:
current_available_actions=filtered_actions,
chat_content_block=chat_content_block,
message_id_list=message_id_list,
interest=global_config.personality.interest,
prompt_key=prompt_key,
)

View File

@@ -375,7 +375,6 @@ class HeartFChatting:
current_available_actions=available_actions,
chat_content_block=chat_content_block,
message_id_list=message_id_list,
interest=global_config.personality.interest,
)
continue_flag, modified_message = await events_manager.handle_mai_events(
EventType.ON_PLAN, None, prompt_info[0], None, self.chat_stream.stream_id

View File

@@ -36,7 +36,6 @@ def init_prompt():
"""
{time_block}
{name_block}
你的兴趣是:{interest}
{chat_context_description},以下是具体的聊天内容
**聊天内容**
{chat_content_block}
@@ -48,8 +47,8 @@ reply
2.你可以自然的顺着正在进行的聊天内容进行回复或自然的提出一个问题
3.不要回复你自己发送的消息
4.不要单独对表情包进行回复
5.think_level表示思考深度0表示该回复不需要思考1表示该回复需要简单思考,2表示该回复需要深度思考
{{"action":"reply", "think_level":数值等级(0-2), "target_message_id":"消息id(m+数字)"}}
5.think_level表示思考深度0表示该回复不需要思考和回忆2表示该回复需要深度思考,进行深入的回忆和思考
{{"action":"reply", "think_level":数值等级(0-2), "target_messamge_id":"消息id(m+数字)"}}
no_reply
动作描述:
@@ -361,7 +360,6 @@ class ActionPlanner:
current_available_actions=filtered_actions,
chat_content_block=chat_content_block,
message_id_list=message_id_list,
interest=global_config.personality.interest,
is_mentioned=is_mentioned,
)

View File

@@ -45,9 +45,6 @@ class PersonalityConfig(ConfigBase):
reply_style: str = ""
"""表达风格"""
interest: str = ""
"""兴趣"""
plan_style: str = ""
"""说话规则,行为风格"""
@@ -79,12 +76,6 @@ class ChatConfig(ConfigBase):
max_context_size: int = 18
"""上下文长度"""
interest_rate_mode: Literal["fast", "accurate"] = "fast"
"""兴趣值计算模式fast为快速计算accurate为精确计算"""
planner_size: float = 1.5
"""副规划器大小越小麦麦的动作执行能力越精细但是消耗更多token调大可以缓解429类错误"""
mentioned_bot_reply: bool = True
"""是否启用提及必回复"""