Browse Source

Update dialogue_manager: refresh user profile

StrayWarrior 4 weeks ago
parent
commit
17a8771dfc
1 changed files with 2 additions and 0 deletions
  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,