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
test(inference): update factory calls to use optional model arguments
Steven Enamakel8512e82105fb
diff --git a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rsindex ef9a0d87fc..9491566c1a 100644--- a/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_crate_native_tests.rs@@ -93,7 +93,7 @@ fn enforce_local_only_inference_errors_on_external_when_local_only() {managed_backend::make_openhuman_backend_model_for_thread("chat",&Config::default(),- route,+ Some(route),true,Some("privacy-test-thread"),&EgressLedger::none(),diff --git a/crates/openhuman-core/src/inference/provider/factory_managed_ledger_tests.rs b/crates/openhuman-core/src/inference/provider/factory_managed_ledger_tests.rsindex 9349b85e84..aafb0795f4 100644--- a/crates/openhuman-core/src/inference/provider/factory_managed_ledger_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_managed_ledger_tests.rs@@ -20,7 +20,7 @@ async fn managed_construction_ledger_collapses_repeat_disclosures() {managed_backend::make_openhuman_backend_model_for_thread("chat",&config,- "egress-ledger-factory-test-model",+ Some("egress-ledger-factory-test-model"),true,Some("ledger-test-thread"),ledger,diff --git a/crates/openhuman-core/src/inference/registry_tests.rs b/crates/openhuman-core/src/inference/registry_tests.rsindex fdbdb5fee9..b0ff04ac9b 100644--- a/crates/openhuman-core/src/inference/registry_tests.rs+++ b/crates/openhuman-core/src/inference/registry_tests.rs@@ -59,7 +59,7 @@ async fn a_registered_chat_model_serves_the_managed_provider_for_a_thread() {let built = make_openhuman_backend_model_for_thread("chat",&Config::default(),- "hint:reasoning",+ Some("hint:reasoning"),true,Some("thread-1"),&EgressLedger::none(),@@ -104,7 +104,7 @@ fn a_registered_embedding_factory_builds_the_managed_embedding_model() {});let built = crate::inference::embedding_host::create_embedding_provider_with_credentials("cloud",- "any-model",+ Some("any-model"),8,"",None,diff --git a/crates/openhuman-core/src/inference/turn_models.rs b/crates/openhuman-core/src/inference/turn_models.rsindex ae45feb850..873b1c80fc 100644--- a/crates/openhuman-core/src/inference/turn_models.rs+++ b/crates/openhuman-core/src/inference/turn_models.rs@@ -147,7 +147,7 @@ fn build_turn_models_crate(.unwrap_or_else(|| factory::resolves_to_managed_backend(role, config));if managed {let (backend, _) = factory::make_openhuman_backend_model_for_thread(- role, config, m, true, thread_id, &egress,+ role, config, Some(m), true, thread_id, &egress,)?;return Ok(Arc::new(RouteRecordingModel::new(crate::attachments::provider::wrap(@@ -224,7 +224,7 @@ fn build_turn_models_crate(}let route = if factory::resolves_to_managed_backend(tier_role, config) {factory::make_openhuman_backend_model_for_thread(- tier_role, config, tier, true, thread_id, &egress,+ tier_role, config, Some(tier), true, thread_id, &egress,).map(|(backend, _)| (backend, "openhuman".to_string(), tier.to_string()))} else {@@ -642,7 +642,7 @@ impl TurnModelSource {return crate::inference::provider::factory::make_openhuman_backend_model_for_thread(&cn.role,&cn.config,- model,+ Some(model),true,thread_id,&crate::security::egress::EgressLedger::none(),