The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(agent): check context_window method instead of field
Steven Enamakelb296f1cf3307
diff --git a/crates/openhuman-core/src/agent/tinyagents/model.rs b/crates/openhuman-core/src/agent/tinyagents/model.rsindex ebfdee5ece..3a8c41626b 100644--- a/crates/openhuman-core/src/agent/tinyagents/model.rs+++ b/crates/openhuman-core/src/agent/tinyagents/model.rs@@ -227,7 +227,7 @@ struct OpenhumanUsageMeta {/// providers that don't surface billing stay `raw: None`).fn openhuman_usage_meta_raw(usage: Option<&BilledUsage>) -> Option<serde_json::Value> {let u = usage?;- if u.charged_amount_usd <= 0.0 && u.context_window == 0 {+ if u.charged_amount_usd <= 0.0 && u.context_window() == 0 {return None;}let meta = OpenhumanUsageMeta {