mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-11 03:13:24 +00:00
fix(agent): raise default compaction threshold from 75% to 85%
Compaction was triggering too early because prompt tokens include system prompt + context files + tools, not just history. Raising the threshold reduces unnecessary compaction cycles.
This commit is contained in:
1 parent
ee9f5b8aaf
commit
0b8366bfd0
1 file changed
+1
-1
@@ -9,5 +9,5 @@ const (
|
||||
DefaultMaxMessageChars = 32000
|
||||
DefaultMaxIterations = 30
|
||||
DefaultTemperature = 0.7
|
||||
DefaultHistoryShare = 0.75
|
||||
DefaultHistoryShare = 0.85
|
||||
)
|
||||
Reference in new issue
Block a user