Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(tinyagents): use summarizer model id in compression summarizers

Steven Enamakel3147eadee845
diff --git a/crates/openhuman-core/src/agent/tinyagents/context_wiring.rs b/crates/openhuman-core/src/agent/tinyagents/context_wiring.rs
index feebee64e4..1ab3c75079 100644
--- a/crates/openhuman-core/src/agent/tinyagents/context_wiring.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/context_wiring.rs
@@ -197,7 +197,7 @@ fn compression_middleware(
let summarizer = FaultTolerantCachingSummarizer::new(
announced(
Box::new(
- TaskStateSummarizer::new(summarizer_model, model)
+ TaskStateSummarizer::new(summarizer_model, summarizer_model_id)
.with_max_chunk_tokens(chunk),
),
compaction_notice,
@@ -214,7 +214,7 @@ fn compression_middleware(
tracing::info!(model, "[context_compression] strategy=summary");
let summarizer = FaultTolerantCachingSummarizer::new(
announced(
- Box::new(ModelSummarizer::new(summarizer_model, model)),
+ Box::new(ModelSummarizer::new(summarizer_model, summarizer_model_id)),
compaction_notice,
),
&policy,