feat:修改log,优化关系构建逻辑,节省token,

This commit is contained in:
SengokuCola
2025-07-08 02:04:31 +08:00
parent 723870bcde
commit f17f5cf46c
10 changed files with 303 additions and 322 deletions

View File

@@ -551,6 +551,9 @@ def build_readable_messages(
show_actions: 是否显示动作记录
"""
# 创建messages的深拷贝避免修改原始列表
if not messages:
return ""
copy_messages = [msg.copy() for msg in messages]
if show_actions and copy_messages: