fix 修正格式防止曹飞
This commit is contained in:
@@ -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)}条")
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user