mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-23 22:55:24 +00:00
docs: refresh failover and compaction refs
This commit is contained in:
@@ -216,7 +216,10 @@ Compaction is **persistent** (unlike session pruning). See [/concepts/session-pr
|
||||
|
||||
In the embedded Pi agent, auto-compaction triggers in two cases:
|
||||
|
||||
1. **Overflow recovery**: the model returns a context overflow error → compact → retry.
|
||||
1. **Overflow recovery**: the model returns a context overflow error
|
||||
(`request_too_large`, `context length exceeded`, `input exceeds the maximum
|
||||
number of tokens`, `input is too long for the model`, and similar
|
||||
provider-shaped variants) → compact → retry.
|
||||
2. **Threshold maintenance**: after a successful turn, when:
|
||||
|
||||
`contextTokens > contextWindow - reserveTokens`
|
||||
|
||||
Reference in New Issue
Block a user