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): use tinyinference_embeddings::Result for embedding factories
Steven Enamakeldfe993643bca
diff --git a/crates/openhuman-core/src/inference/registry.rs b/crates/openhuman-core/src/inference/registry.rsindex ed9ceef17c..ae19aadeec 100644--- a/crates/openhuman-core/src/inference/registry.rs+++ b/crates/openhuman-core/src/inference/registry.rs@@ -118,7 +118,9 @@ pub struct EmbeddingRequest<'a> {/// Builds an embedding model.pub type EmbeddingFactory = Arc<- dyn for<'a> Fn(&EmbeddingRequest<'a>) -> anyhow::Result<Box<dyn EmbeddingModel>> + Send + Sync,+ dyn for<'a> Fn(&EmbeddingRequest<'a>) -> tinyinference_embeddings::Result<Box<dyn EmbeddingModel>>+ + Send+ + Sync,>;static EMBEDDINGS: HookSlot<EmbeddingFactory> = HookSlot::new("inference::embeddings");@@ -126,7 +128,7 @@ static EMBEDDINGS: HookSlot<EmbeddingFactory> = HookSlot::new("inference::embedd/// Registers the embedding provider `provider_id` for the whole process.pub fn register_embedding<F>(provider_id: impl Into<String>, factory: F)where- F: for<'a> Fn(&EmbeddingRequest<'a>) -> anyhow::Result<Box<dyn EmbeddingModel>>+ F: for<'a> Fn(&EmbeddingRequest<'a>) -> tinyinference_embeddings::Result<Box<dyn EmbeddingModel>>+ Send+ Sync+ 'static,@@ -141,7 +143,7 @@ pub fn register_embedding_in<F>(provider_id: impl Into<String>,factory: F,) where- F: for<'a> Fn(&EmbeddingRequest<'a>) -> anyhow::Result<Box<dyn EmbeddingModel>>+ F: for<'a> Fn(&EmbeddingRequest<'a>) -> tinyinference_embeddings::Result<Box<dyn EmbeddingModel>>+ Send+ Sync+ 'static,