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
refactor(inference): clean up model building calls
Steven Enamakel8838710c2b22
diff --git a/crates/openhuman-core/src/inference/provider/factory_model_gate_tests.rs b/crates/openhuman-core/src/inference/provider/factory_model_gate_tests.rsindex 8daa8a0dce..a3b9887d3a 100644--- a/crates/openhuman-core/src/inference/provider/factory_model_gate_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_model_gate_tests.rs@@ -71,11 +71,12 @@ async fn turn_factory_checks_privacy_then_explicit_host_session_before_building_true,).expect("store isolated test session");- let built = tinyagents_harness::host::TurnModelSet::<()>::builder(&factory, &factory, "chat")- .primary_model_pin("factory-gate-order-sentinel-model")- .without_workload_tiers()- .build()- .expect("authorized managed turn builds");+ let built =+ tinyagents_harness::host::TurnModelSet::<()>::builder(&factory, &factory, "chat")+ .primary_model_pin("factory-gate-order-sentinel-model")+ .without_workload_tiers()+ .build()+ .expect("authorized managed turn builds");let _summarizer = built.summarizer();assert_eq!(builds.lock().expect("build counter").len(), 2);@@ -103,7 +104,10 @@ async fn turn_factory_checks_privacy_then_explicit_host_session_before_building_None => panic!("the bus closed before the test sentinel arrived"),}}- assert_eq!(disclosures, 1, "the turn ledger deduplicates primary and summary egress");+ assert_eq!(+ disclosures, 1,+ "the turn ledger deduplicates primary and summary egress"+ );}).await;}diff --git a/crates/openhuman-core/src/inference/turn_models.rs b/crates/openhuman-core/src/inference/turn_models.rsindex 8030100d68..be33ece50f 100644--- a/crates/openhuman-core/src/inference/turn_models.rs+++ b/crates/openhuman-core/src/inference/turn_models.rs@@ -561,8 +561,7 @@ impl TurnModelSource {opts,};tinyagents_harness::host::ModelBuildGate::check(&factory, &request)?;- let (model, route) =- tinyagents_harness::host::ModelFactory::build(&factory, &request)?;+ let (model, route) = tinyagents_harness::host::ModelFactory::build(&factory, &request)?;let provider = model.profile().and_then(|profile| profile.provider.as_deref())