关系系统大致完善

This commit is contained in:
meng_xi_pan
2025-03-14 17:47:33 +08:00
parent 414340588d
commit a3927507dc
4 changed files with 76 additions and 53 deletions

View File

@@ -340,9 +340,9 @@ class ChatBot:
)
message_manager.add_message(bot_message)
emotion = await self.gpt._get_emotion_tags(raw_content)
logger.debug(f"'{response}' 获取到的情感标签为:{emotion}")
await relationship_manager.calculate_update_relationship_value(chat_stream=chat,label=emotion[0])
stance,emotion = await self.gpt._get_emotion_tags(raw_content,message.processed_plain_text)
logger.debug(f"'{response}' 立场为:{stance} 获取到的情感标签为:{emotion}")
await relationship_manager.calculate_update_relationship_value(chat_stream=chat, label=emotion, stance=stance)
# emotion = await self.gpt._get_emotion_tags(raw_content)
# logger.debug(f"为 '{response}' 获取到的情感标签为:{emotion}")