fix:(proactive_thinker)这beyond的孩子忘了加mood_state,导致主动思考提示词里的情绪输出了一堆乱码()

This commit is contained in:
minecraft1024a
2025-10-03 18:21:21 +08:00
parent 62fe589c8f
commit 4089e714b7

View File

@@ -160,7 +160,7 @@ class ProactiveThinkerExecutor:
# 2. 构建基础上下文 # 2. 构建基础上下文
if global_config.mood.enable_mood: if global_config.mood.enable_mood:
try: try:
mood_state = mood_manager.get_mood_by_chat_id(stream.stream_id) mood_state = mood_manager.get_mood_by_chat_id(stream.stream_id).mood_state
except Exception as e: except Exception as e:
logger.error(f"获取情绪失败,原因:{e}") logger.error(f"获取情绪失败,原因:{e}")
mood_state = "暂时没有" mood_state = "暂时没有"