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 managed backend model creation
Steven Enamakelb345674295e5
diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rsindex 7b3e04b65c..51943af0a1 100644--- a/crates/openhuman-core/src/inference/provider/factory.rs+++ b/crates/openhuman-core/src/inference/provider/factory.rs@@ -75,7 +75,6 @@ use access_gates::{emit_inference_egress, enforce_local_only_inference};use chat_model::{unresolved_chat_model_error, unresolved_chat_model_error_for, with_default_temperature};use cloud_slug::{resolve_cloud_slug_for, try_create_cloud_slug_chat_model_from_string,- try_create_cloud_slug_chat_model_from_string_with_native_tools_for,try_create_cloud_slug_chat_model_with_native_tools_for,};#[cfg(test)]@@ -86,9 +85,11 @@ use local_runtime::{};use managed_backend::managed_chat_model_for;pub(crate) use managed_backend::{- make_openhuman_backend_model_for_options, make_openhuman_backend_model_for_thread,- make_openhuman_backend_model_for_thread_in, make_openhuman_backend_model_in,+ make_openhuman_backend_model_for_options, make_openhuman_backend_model_for_thread_in,+ make_openhuman_backend_model_in,};+#[cfg(test)]+pub(crate) use managed_backend::make_openhuman_backend_model_for_thread;use subprocess_providers::{prepare_claude_agent_sdk_chat_model, try_create_claude_agent_sdk_chat_model,try_create_claude_agent_sdk_chat_model_from_string, try_create_claude_code_chat_model,diff --git a/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs b/crates/openhuman-core/src/inference/provider/factory/managed_backend.rsindex 3e4efc4376..ce487901db 100644--- a/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs+++ b/crates/openhuman-core/src/inference/provider/factory/managed_backend.rs@@ -94,6 +94,7 @@ pub(super) fn managed_chat_model_for(}/// Construct a managed turn model with the explicit OpenHuman thread attached.+#[cfg(test)]pub(crate) fn make_openhuman_backend_model_for_thread(role: &str,config: &Config,