Skip to content

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

refactor(inference): clean up module exports

Steven Enamakeldfa95af07383
diff --git a/crates/openhuman-core/src/inference/provider/factory_tests.rs b/crates/openhuman-core/src/inference/provider/factory_tests.rs
index e03ae768c2..681dec5917 100644
--- a/crates/openhuman-core/src/inference/provider/factory_tests.rs
+++ b/crates/openhuman-core/src/inference/provider/factory_tests.rs
@@ -1,6 +1,6 @@
use super::*;
-use crate::config::schema::cloud_providers::{AuthStyle, CloudProviderCreds};
use crate::config::Config;
+use crate::config::schema::cloud_providers::{AuthStyle, CloudProviderCreds};
use crate::security::credentials::AuthService;
use tempfile::TempDir;
@@ -231,7 +231,7 @@ fn deepseek_entry(id: &str) -> CloudProviderCreds {
/// A config carrying a resolved model, as `agent_chat` leaves it after applying
/// `model_override` and before building the agent.
fn routed_config(endpoint: &str, api_key: &str, model: &str) -> Config {
- use crate::config::schema::ephemeral_route::{apply, EphemeralRoute};
+ use crate::config::schema::ephemeral_route::{EphemeralRoute, apply};
let mut config = Config {
default_model: Some(model.to_string()),
..Config::default()
diff --git a/crates/openhuman-core/src/inference/provider/mod.rs b/crates/openhuman-core/src/inference/provider/mod.rs
index 546468f36c..d87ab54b1f 100644
--- a/crates/openhuman-core/src/inference/provider/mod.rs
+++ b/crates/openhuman-core/src/inference/provider/mod.rs
@@ -11,9 +11,9 @@ pub mod http_error;
pub mod models;
pub use factory::{
- create_chat_model_from_string, create_chat_model_from_string_with_model_id,
- create_chat_model_in, create_chat_model_with_model_id_in, probe_inference_readiness,
- provider_for_role, BYOK_INCOMPLETE_SENTINEL,
+ BYOK_INCOMPLETE_SENTINEL, create_chat_model_from_string,
+ create_chat_model_from_string_with_model_id, create_chat_model_in,
+ create_chat_model_with_model_id_in, probe_inference_readiness, provider_for_role,
};
#[cfg(test)]