fix:并行动作炸裂问题

This commit is contained in:
SengokuCola
2025-07-26 23:14:47 +08:00
parent 75af87aa5f
commit 0367dae824
5 changed files with 184 additions and 100 deletions

View File

@@ -524,7 +524,7 @@ class ExpressionLearner:
chat_str=random_msg_str,
)
logger.debug(f"学习{type_str}的prompt: {prompt}")
logger.info(f"学习{type_str}的prompt: {prompt}")
try:
response, _ = await self.express_learn_model.generate_response_async(prompt)

View File

@@ -279,6 +279,7 @@ class ExpressionSelector:
if not isinstance(result, dict) or "selected_situations" not in result:
logger.error("LLM返回格式错误")
logger.info(f"LLM返回结果: \n{content}")
return []
selected_indices = result["selected_situations"]