feat: 提炼模板弹窗加宽,后端配置上下文压缩测试值

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
AdministratorandClaude Opus 4.8 committed 2026-06-16 19:50:33 +08:00
1 parent 4f0494a97a
commit c21a1127f8
3 files changed
+30 -5

No files matched your search

+7 -4
View File
@@ -307,9 +307,9 @@ summarization:
# model_name: deepseek-chat
trigger:
- type: tokens
value: 60000
value: 8000
- type: messages
value: 80
value: 12
# Keep a small *token* budget of recent context (same unit as the token
# trigger, well below it). This is what the model receives after compaction:
# [summary, ~16000 tokens of recent turns]. Small keep = small model context
@@ -318,6 +318,9 @@ summarization:
# which spans many turns. The full conversation still stays in state for the
# page; only what is sent to the model is compressed.
keep:
type: tokens
value: 16000
type: messages # 测试值:压缩后只保留最近 6 条原始消息
value: 6
# 生产值改用 token 预算:
# type: tokens
# value: 16000
trim_tokens_to_summarize: 4000