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 local runtime test assertions
Steven Enamakel6174b0d003c5
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 33fb59de4a..90a9cbb6eb 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@@ -1,4 +1,3 @@-use super::local_runtime::try_create_local_runtime_chat_model;use super::*;use crate::security::egress::EgressLedger;@@ -364,16 +363,23 @@ fn explicit_local_provider_string_routes_to_crate_native_model() {fn try_create_local_runtime_returns_none_for_managed_and_cloud() {let _guard = crate::inference::inference_test_guard();// Default config resolves to the managed backend, not a local runtime.- assert!(- try_create_local_runtime_chat_model("chat", &Config::default(), &EgressLedger::none())- .is_none()- );+ assert!(super::local_runtime::try_create_local_runtime_chat_model(+ "chat",+ &Config::default(),+ &EgressLedger::none(),+ )+ .is_none());// A BYOK cloud slug is not a local runtime either — it falls through to the// `Provider` path.let mut cloud = Config::default();cloud.cloud_providers.push(openai_entry("p_oai", "openai"));cloud.chat_provider = Some("openai:gpt-4o-mini".to_string());- assert!(try_create_local_runtime_chat_model("chat", &cloud, &EgressLedger::none()).is_none());+ assert!(super::local_runtime::try_create_local_runtime_chat_model(+ "chat",+ &cloud,+ &EgressLedger::none(),+ )+ .is_none());}#[test]