Skip to content

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

chore(inference): remove unused imports in embedding host

Steven Enamakelae5e834ed721
diff --git a/crates/openhuman-core/src/inference/embedding_host/factory.rs b/crates/openhuman-core/src/inference/embedding_host/factory.rs
index 08706662cb..42329be52a 100644
--- a/crates/openhuman-core/src/inference/embedding_host/factory.rs
+++ b/crates/openhuman-core/src/inference/embedding_host/factory.rs
@@ -10,7 +10,6 @@ use tinyinference_embeddings::factory::{
use tinyinference_embeddings::{EmbeddingModel, UnavailableEmbeddingModel};
use tinyinference_providers::route::custom_provider_string;
-use super::cloud::UnavailableEmbeddingModel;
use crate::inference::provider::factory::PROVIDER_OPENHUMAN;
use crate::inference::registry::EmbeddingRequest;
use crate::security::approval::ApprovalChatContext;
diff --git a/crates/openhuman-core/src/inference/embedding_host/rpc.rs b/crates/openhuman-core/src/inference/embedding_host/rpc.rs
index 96c8e64cdc..45e490a0a8 100644
--- a/crates/openhuman-core/src/inference/embedding_host/rpc.rs
+++ b/crates/openhuman-core/src/inference/embedding_host/rpc.rs
@@ -12,9 +12,6 @@ pub use api_keys::{clear_api_key, set_api_key};
pub use embed::{embed, test_connection};
pub use settings::{get_settings, update_settings};
-#[cfg(test)]
-use tinyinference_embeddings::probe::redact_secrets;
-
#[cfg(test)]
use settings::remember_active_custom_profile;
diff --git a/crates/openhuman-core/src/inference/embedding_host/rpc/settings.rs b/crates/openhuman-core/src/inference/embedding_host/rpc/settings.rs
index 3021d621e6..9653ed37c7 100644
--- a/crates/openhuman-core/src/inference/embedding_host/rpc/settings.rs
+++ b/crates/openhuman-core/src/inference/embedding_host/rpc/settings.rs
@@ -128,7 +128,7 @@ pub async fn get_settings(config: &Config) -> Result<Outcome<serde_json::Value>,
.map(str::trim)
.is_some_and(|provider| provider == "none"),
local_model.as_deref(),
- Some(&config.memory.embedding_provider),
+ Some(config.memory.embedding_provider.as_str()),
session_exists,
);