feat(llm): mark compaction requests with x-deepseek-harness-compact header

This commit is contained in:
Jinhua Zhu
2026-07-22 18:35:32 +08:00
parent 6646ef04ac
commit 66e5f8eecd
7 changed files with 29 additions and 2 deletions

View File

@@ -226,4 +226,11 @@ export interface GenerateOptions {
* it; replay uses it to keep concurrent parent and child cursors independent.
*/
sessionId?: Branded<'SessionId'>
/**
* Marks the auxiliary compaction (summarization) call. The DeepSeek adapter
* forwards it as the `x-deepseek-harness-compact: 1` request header so the
* host can separate compaction traffic from conversation requests; it never
* enters the model-visible request body. Loop-built requests leave it unset.
*/
compact?: boolean
}