refactor(PFC): 将424行get_message_history方法重命名为get_cached_messages防止Ruff炸掉喵

This commit is contained in:
DrSmoothl
2025-04-09 11:34:04 +08:00
parent a42d1b3664
commit eae0d06d33
4 changed files with 9 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ class ReplyChecker:
Tuple[bool, str, bool]: (是否合适, 原因, 是否需要重新规划)
"""
# 获取最新的消息记录
messages = self.chat_observer.get_message_history(limit=5)
messages = self.chat_observer.get_cached_messages(limit=5)
chat_history_text = ""
for msg in messages:
time_str = datetime.datetime.fromtimestamp(msg["time"]).strftime("%H:%M:%S")