fix 修复了麦麦不会回复的bug

This commit is contained in:
SengokuCola
2025-03-18 12:55:16 +08:00
parent 10f8aa08ca
commit d7165175da
7 changed files with 123 additions and 15 deletions

View File

@@ -11,9 +11,16 @@ from .message import MessageRecv, MessageThinking, Message
from .prompt_builder import prompt_builder
from .relationship_manager import relationship_manager
from .utils import process_llm_response
from src.common.logger import get_module_logger
from src.common.logger import get_module_logger, LogConfig, LLM_STYLE_CONFIG
logger = get_module_logger("response_gen")
# 定义日志配置
llm_config = LogConfig(
# 使用消息发送专用样式
console_format=LLM_STYLE_CONFIG["console_format"],
file_format=LLM_STYLE_CONFIG["file_format"]
)
logger = get_module_logger("llm_generator", config=llm_config)
driver = get_driver()
config = driver.config