fix: always compress history tags, adjust context trim thresholds

This commit is contained in:
Liang Jiaqing
2026-03-25 08:37:46 +08:00
parent ddce7ef549
commit b92d2bc97d
2 changed files with 6 additions and 6 deletions

2
ga.py
View File

@@ -516,8 +516,8 @@ def get_global_memory():
script_dir = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(script_dir, 'memory/global_mem_insight.txt'), 'r', encoding='utf-8') as f: insight = f.read()
with open(os.path.join(script_dir, 'assets/insight_fixed_structure.txt'), 'r', encoding='utf-8') as f: structure = f.read()
prompt += f"\n[Memory]\n"
prompt += f'cwd = {os.path.abspath("./temp")} (用./引用)\n'
prompt += f"\n[Memory] (../memory)\n"
prompt += structure + '\n../memory/global_mem_insight.txt:\n'
prompt += insight + "\n"
except FileNotFoundError: pass