|
@@ -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,
|