mirror of https://github.com/Mai-with-u/MaiBot.git
使planner和replayer能够正常构建no_read_command属性消息
我认为这个属性其实不应该只属于command,它应该是不会让麦麦去触发“思考”,但是回复和规划的时候必须要用上,要不然存了跟没存没区别的。 我认为让replayer和planner考虑这些消息也应当是必要的,因为麦麦得知用户曾经做过什么行为是有助于行为连贯性的。pull/1394/head
parent
66ab82f805
commit
4141043ad3
|
|
@ -69,7 +69,7 @@ class ActionModifier:
|
|||
chat_id=self.chat_stream.stream_id,
|
||||
timestamp=time.time(),
|
||||
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(
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ class ActionPlanner:
|
|||
chat_id=self.chat_id,
|
||||
timestamp=time.time(),
|
||||
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"]] = []
|
||||
chat_content_block, message_id_list = build_readable_messages_with_id(
|
||||
|
|
|
|||
|
|
@ -941,7 +941,7 @@ class DefaultReplyer:
|
|||
chat_id=chat_id,
|
||||
timestamp=time.time(),
|
||||
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(
|
||||
message_list_before_now_half,
|
||||
|
|
|
|||
Loading…
Reference in New Issue