fix:修复msg_id为正确提取导致的聊天退出错误

This commit is contained in:
SengokuCola
2025-08-07 23:48:04 +08:00
parent f22d81a274
commit ade7ed4f5a
2 changed files with 43 additions and 2 deletions

View File

@@ -264,9 +264,14 @@ class ExpressionSelector:
# 4. 调用LLM
try:
content, _ = await self.llm_model.generate_response_async(prompt=prompt)
content, (reasoning_content, model_name, _) = await self.llm_model.generate_response_async(prompt=prompt)
# logger.info(f"{self.log_prefix} LLM返回结果: {content}")
# logger.info(f"模型名称: {model_name}")
# logger.info(f"LLM返回结果: {content}")
# if reasoning_content:
# logger.info(f"LLM推理: {reasoning_content}")
# else:
# logger.info(f"LLM推理: 无")
if not content:
logger.warning("LLM返回空结果")