fix:记忆系统成大芬了,暂时禁用

This commit is contained in:
SengokuCola
2025-08-23 12:38:17 +08:00
parent d64215c21e
commit 9fe19671ec
4 changed files with 23 additions and 11 deletions

View File

@@ -570,7 +570,10 @@ def build_readable_actions(actions: List[Dict[str, Any]],mode:str="relative") ->
time_diff_minutes = round(time_diff_seconds / 60)
time_ago_str = f"{int(time_diff_minutes)}分钟前"
elif mode == "absolute":
time_ago_str = f"{action_time}"
# 转化为可读时间(仅保留时分秒,不包含日期)
action_time_struct = time.localtime(action_time)
time_str = time.strftime("%H:%M:%S", action_time_struct)
time_ago_str = f"{time_str}"
line = f"{time_ago_str},你使用了“{action_name}”,具体内容是:“{action_prompt_display}"
output_lines.append(line)