浏览代码

Update dialogue_manager: refresh user profile

StrayWarrior 1 月之前
父节点
当前提交
17a8771dfc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dialogue_manager.py

+ 2 - 0
dialogue_manager.py

@@ -335,6 +335,8 @@ class DialogueManager:
     def get_prompt_context(self, user_message) -> Dict:
         # 获取当前时间上下文
         time_context = self.get_current_time_context()
+        # 刷新用户画像
+        self.user_profile = self.user_manager.get_user_profile(self.user_id)
 
         context = {
             "user_profile": self.user_profile,