Skip to content

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

fix(embedding_host): return early on connection build errors

Steven Enamakel62af9321854a
diff --git a/crates/openhuman-core/src/inference/embedding_host/rpc/embed.rs b/crates/openhuman-core/src/inference/embedding_host/rpc/embed.rs
index b87c6f4cce..1cd1cd0d73 100644
--- a/crates/openhuman-core/src/inference/embedding_host/rpc/embed.rs
+++ b/crates/openhuman-core/src/inference/embedding_host/rpc/embed.rs
@@ -114,9 +114,7 @@ pub async fn test_connection(
.await;
let result = match result {
Ok(result) => Ok(result.actual_dims),
- // Temporary characterization: the old helper collapsed construction
- // errors into the same failure payload as invocation errors.
- Err(ConnectionTestError::Build(error)) => Err(error.to_string()),
+ Err(ConnectionTestError::Build(error)) => return Err(error.to_string()),
Err(ConnectionTestError::Embed(error)) => Err(error.to_string()),
};