mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
feat: add compaction ratio setting to control partial context compaction
Allow users to configure what percentage of older messages to compact, keeping the most recent portion intact. Default ratio is 80%, meaning the oldest 80% of uncompacted messages are summarized while the newest 20% remain as-is for full-fidelity context.
This commit is contained in:
@@ -12392,6 +12392,9 @@
|
||||
"compaction_model_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"compaction_ratio": {
|
||||
"type": "integer"
|
||||
},
|
||||
"compaction_threshold": {
|
||||
"type": "integer"
|
||||
},
|
||||
@@ -12445,6 +12448,9 @@
|
||||
"compaction_model_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"compaction_ratio": {
|
||||
"type": "integer"
|
||||
},
|
||||
"compaction_threshold": {
|
||||
"type": "integer"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user