fix:planner和replyer正确处理拦截

This commit is contained in:
SengokuCola
2025-11-26 16:38:34 +08:00
parent 265d946ebd
commit 4a530a7bca
10 changed files with 36 additions and 5 deletions

View File

@@ -751,12 +751,14 @@ class DefaultReplyer:
chat_id=chat_id,
timestamp=reply_time_point,
limit=global_config.chat.max_context_size * 1,
filter_no_read_command=True,
)
message_list_before_short = get_raw_msg_before_timestamp_with_chat(
chat_id=chat_id,
timestamp=reply_time_point,
limit=int(global_config.chat.max_context_size * 0.33),
filter_no_read_command=True,
)
person_list_short: List[Person] = []
@@ -941,6 +943,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,
)
chat_talking_prompt_half = build_readable_messages(
message_list_before_now_half,