fix 修正格式防止曹飞

This commit is contained in:
SengokuCola
2025-03-21 14:49:59 +08:00
parent 96637a4088
commit 432104f582
6 changed files with 22 additions and 14 deletions

View File

@@ -239,7 +239,11 @@ class Hippocampus:
chat_samples = []
for timestamp in timestamps:
messages = self.random_get_msg_snippet(timestamp, global_config.build_memory_sample_length, max_memorized_time_per_msg)
messages = self.random_get_msg_snippet(
timestamp,
global_config.build_memory_sample_length,
max_memorized_time_per_msg
)
if messages:
time_diff = (datetime.datetime.now().timestamp() - timestamp) / 3600
logger.debug(f"成功抽取 {time_diff:.1f} 小时前的消息样本,共{len(messages)}")