Skip to content

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

fix(embeddings): correct embedding dimension handling for non-OpenAI providers

Steven Enamakel1fd775b4bd69
diff --git a/src/openhuman/agent/tinyagents/embeddings.rs b/src/openhuman/agent/tinyagents/embeddings.rs
index 073a666c4b..f6607fcf02 100644
--- a/src/openhuman/agent/tinyagents/embeddings.rs
+++ b/src/openhuman/agent/tinyagents/embeddings.rs
@@ -91,7 +91,7 @@ impl TaEmbeddingModel for ProviderEmbeddingModel {
// OpenHuman providers surface `anyhow::Error`; the crate expects its
// own error type. Carry the full chain into the crate's embedding
// error variant so nothing is lost.
- TinyAgentsError::Embedding(format!("{e:#}"))
+ TiError::Embedding(format!("{e:#}"))
})?;
tracing::debug!(
provider = self.provider.name(),