mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 17:00:45 +00:00
Clarify keepRecentTokens is configurable
This commit is contained in:
parent
51aa1339ef
commit
699702e366
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ The `before_compact` event lets you implement custom compaction strategies. Unde
|
||||||
|
|
||||||
**How default compaction works:**
|
**How default compaction works:**
|
||||||
|
|
||||||
When context exceeds the threshold, pi finds a "cut point" that keeps ~20k tokens of recent turns:
|
When context exceeds the threshold, pi finds a "cut point" that keeps recent turns (configurable via `settings.json` `compaction.keepRecentTokens`, default 20k):
|
||||||
|
|
||||||
```
|
```
|
||||||
Session entries (before compaction):
|
Session entries (before compaction):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue