Skip to content

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

refactor(inference): update factory imports

Steven Enamakele97dd14ee850
diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rs
index 51943af0a1..1e42e47412 100644
--- a/crates/openhuman-core/src/inference/provider/factory.rs
+++ b/crates/openhuman-core/src/inference/provider/factory.rs
@@ -72,24 +72,26 @@ pub(crate) use turn_model::{
// Factory-internal helpers shared across the submodules (and their tests)
// through `use super::*`.
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 chat_model::{
+ unresolved_chat_model_error, unresolved_chat_model_error_for, with_default_temperature,
+};
+#[cfg(test)]
+use cloud_slug::try_create_cloud_slug_chat_model;
use cloud_slug::{
resolve_cloud_slug_for, try_create_cloud_slug_chat_model_from_string,
try_create_cloud_slug_chat_model_with_native_tools_for,
};
-#[cfg(test)]
-use cloud_slug::try_create_cloud_slug_chat_model;
use local_runtime::{
try_create_local_runtime_chat_model, try_create_local_runtime_chat_model_from_string,
OptionalChatModelResult,
};
+#[cfg(test)]
+pub(crate) use managed_backend::make_openhuman_backend_model_for_thread;
use managed_backend::managed_chat_model_for;
pub(crate) use managed_backend::{
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,