🤖 自动格式化代码 [skip ci]
This commit is contained in:
@@ -754,14 +754,11 @@ class HeartFChatting:
|
||||
if relation_info:
|
||||
updated_action_data["relation_info"] = relation_info
|
||||
|
||||
|
||||
if structured_info:
|
||||
updated_action_data["structured_info"] = structured_info
|
||||
|
||||
if all_post_plan_info:
|
||||
logger.info(
|
||||
f"{self.log_prefix} 后期处理完成,产生了 {len(all_post_plan_info)} 个信息项"
|
||||
)
|
||||
logger.info(f"{self.log_prefix} 后期处理完成,产生了 {len(all_post_plan_info)} 个信息项")
|
||||
|
||||
# 输出详细统计信息
|
||||
if post_processor_time_costs:
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
from src.chat.heart_flow.observation.chatting_observation import ChattingObservation
|
||||
from src.chat.heart_flow.observation.structure_observation import StructureObservation
|
||||
from src.llm_models.utils_model import LLMRequest
|
||||
from src.config.config import global_config
|
||||
from src.common.logger import get_logger
|
||||
@@ -10,7 +8,6 @@ from typing import List, Dict
|
||||
import difflib
|
||||
import json
|
||||
from json_repair import repair_json
|
||||
from src.person_info.person_info import get_person_info_manager
|
||||
|
||||
|
||||
logger = get_logger("memory_activator")
|
||||
@@ -76,7 +73,7 @@ class MemoryActivator:
|
||||
)
|
||||
self.running_memory = []
|
||||
self.cached_keywords = set() # 用于缓存历史关键词
|
||||
|
||||
|
||||
async def activate_memory_with_chat_history(self, chat_id, target_message, chat_history_prompt) -> List[Dict]:
|
||||
"""
|
||||
激活记忆
|
||||
|
||||
Reference in New Issue
Block a user