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)}")

View File

@@ -17,7 +17,7 @@ import jieba
root_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../.."))
sys.path.append(root_path)
from src.common.logger import get_module_logger
from src.common.logger import get_module_logger # noqa: E402
from src.common.database import db # noqa E402
from src.plugins.memory_system.offline_llm import LLMModel # noqa E402

View File

@@ -1,7 +1,5 @@
import numpy as np
import matplotlib.pyplot as plt
from scipy import stats
import time
from datetime import datetime, timedelta
class DistributionVisualizer: