Skip to content

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

fix(inference): use shared budget ledger in complete_once

Steven Enamakel217be00fab44
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs
index bab039b7d0..8a67f6be20 100644
--- a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs
@@ -130,7 +130,7 @@ pub async fn complete_once_controlled(
let model: std::sync::Arc<dyn ChatModel<()>> = std::sync::Arc::new(model);
let monetary_budget = budget.map(|budget| tinyagents_harness::cost::ModelBudget::new(
- budget.ledger.child(crate::agent::tinyagents::budget::SpendLimits::default()),
+ budget.ledger.clone(),
budget.call,
));
let controlled = tinyagents_harness::cost::ControlledChatModel::new(