Skip to content

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

fix(embeddings): gate model_supports_dimensions re-export behind test seam cfg\n\nThe sole caller is host_impls.rs, which is already\n#[cfg(any(test, feature = "memory-embedded-test-seams"))]. In product\nbuilds host_impls is absent and the re-export is unused, triggering\n-D warnings. Gate the re-export to match.\n

shanu73b3d923c826
diff --git a/src/openhuman/inference/embeddings/mod.rs b/src/openhuman/inference/embeddings/mod.rs
index 817ac1eb5e..ecf609f3f8 100644
--- a/src/openhuman/inference/embeddings/mod.rs
+++ b/src/openhuman/inference/embeddings/mod.rs
@@ -49,6 +49,8 @@ pub use factory::{
// `pub(crate)` helper — reused by the memory-tree OpenAI-compat adapter to gate
// configs whose dimension the fixed-1024 tree can't store (#4056). Not part of
// the public surface, so it can't ride the `pub use` above (E0364).
+// Only compiled when `host_impls` is: the sole caller is behind that same gate.
+#[cfg(any(test, feature = "memory-embedded-test-seams"))]
pub(crate) use factory::model_supports_dimensions;
// #002 FR-015: the memory-tree OpenAI-compat embedder reuses the same key
// resolution the embeddings RPC uses, so there is one source of truth.