使planner和replayer能够正常构建no_read_command属性消息

我认为这个属性其实不应该只属于command,它应该是不会让麦麦去触发“思考”,但是回复和规划的时候必须要用上,要不然存了跟没存没区别的。
我认为让replayer和planner考虑这些消息也应当是必要的,因为麦麦得知用户曾经做过什么行为是有助于行为连贯性的。
pull/1394/head
A0000Xz 2025-12-01 02:59:56 +08:00
parent 66ab82f805
commit 4141043ad3
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ class ActionModifier:
chat_id=self.chat_stream.stream_id, chat_id=self.chat_stream.stream_id,
timestamp=time.time(), timestamp=time.time(),
limit=min(int(global_config.chat.max_context_size * 0.33), 10), limit=min(int(global_config.chat.max_context_size * 0.33), 10),
filter_no_read_command=True, filter_no_read_command=False,
) )
chat_content = build_readable_messages( chat_content = build_readable_messages(

View File

@ -316,7 +316,7 @@ class ActionPlanner:
chat_id=self.chat_id, chat_id=self.chat_id,
timestamp=time.time(), timestamp=time.time(),
limit=int(global_config.chat.max_context_size * 0.6), limit=int(global_config.chat.max_context_size * 0.6),
filter_no_read_command=True, filter_no_read_command=False,
) )
message_id_list: list[Tuple[str, "DatabaseMessages"]] = [] message_id_list: list[Tuple[str, "DatabaseMessages"]] = []
chat_content_block, message_id_list = build_readable_messages_with_id( chat_content_block, message_id_list = build_readable_messages_with_id(

View File

@ -941,7 +941,7 @@ class DefaultReplyer:
chat_id=chat_id, chat_id=chat_id,
timestamp=time.time(), timestamp=time.time(),
limit=min(int(global_config.chat.max_context_size * 0.33), 15), limit=min(int(global_config.chat.max_context_size * 0.33), 15),
filter_no_read_command=True, filter_no_read_command=False,
) )
chat_talking_prompt_half = build_readable_messages( chat_talking_prompt_half = build_readable_messages(
message_list_before_now_half, message_list_before_now_half,