Skip to content

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

chore: files changed crates/openhuman-embed/src/complete.rs

Steven Enamakelf72e8dbc175a
diff --git a/crates/openhuman-embed/src/complete.rs b/crates/openhuman-embed/src/complete.rs
index a0b75a60bb..fa90faadf7 100644
--- a/crates/openhuman-embed/src/complete.rs
+++ b/crates/openhuman-embed/src/complete.rs
@@ -664,13 +664,15 @@ impl Completer {
call: budget.call,
});
// The spend ledger is an explicit argument of the call, not an ambient scope.
- let budget = budget.as_ref().map(|budget| {
+ let oneshot_budget = budget.as_ref().map(|budget| {
tinyagents_harness::cost::ModelBudget::new(budget.ledger.clone(), budget.call)
});
let call = tinyagents_harness::oneshot::complete_once_controlled(
model,
wire_request,
- tinyagents_harness::oneshot::OneshotOptions { budget },
+ tinyagents_harness::oneshot::OneshotOptions {
+ budget: oneshot_budget,
+ },
self.observers.physical_dispatch.clone(),
self.dispatch_admission.clone(),
);