mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-07-10 01:39:25 +00:00
fix: remove auto-compaction turn limit (#506)
This commit is contained in:
parent
4d113949c8
commit
f09ec7bbb5
2 changed files with 7 additions and 1 deletions
6
.changeset/remove-compaction-turn-limit.md
Normal file
6
.changeset/remove-compaction-turn-limit.md
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
"@moonshot-ai/agent-core": patch
|
||||
"@moonshot-ai/kimi-code": patch
|
||||
---
|
||||
|
||||
Remove the per-turn auto-compaction limit so long conversations can keep compacting instead of failing early.
|
||||
|
|
@ -17,7 +17,7 @@ export const DEFAULT_COMPACTION_CONFIG: CompactionConfig = {
|
|||
triggerRatio: 0.85,
|
||||
blockRatio: 0.85, // Same as triggerRatio to disable async compaction
|
||||
reservedContextSize: 50_000,
|
||||
maxCompactionPerTurn: 3,
|
||||
maxCompactionPerTurn: Infinity,
|
||||
maxRecentMessages: 4,
|
||||
maxRecentUserMessages: Infinity,
|
||||
maxRecentSizeRatio: 0.2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue