Skip to content

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

fix(embed): gate host re-exports behind their feature flags

Steven Enamakel352594a28330
diff --git a/crates/openhuman-embed/src/host_internals.rs b/crates/openhuman-embed/src/host_internals.rs
index c7fa2295a2..1cf1f2243b 100644
--- a/crates/openhuman-embed/src/host_internals.rs
+++ b/crates/openhuman-embed/src/host_internals.rs
@@ -187,7 +187,9 @@ pub mod inference {
}
}
pub mod http {
- pub use openhuman_core::inference::http::{router, EXTERNAL_OPENAI_COMPAT_PROVIDER};
+ #[cfg(feature = "http-server")]
+ pub use openhuman_core::inference::http::router;
+ pub use openhuman_core::inference::http::EXTERNAL_OPENAI_COMPAT_PROVIDER;
}
}
@@ -295,11 +297,13 @@ pub mod voice {
subscribe_dictation_events, subscribe_transcription_results,
};
}
+ #[cfg(feature = "voice")]
pub mod live {
pub mod ws {
pub use openhuman_core::voice::live::ws::handle_live_voice_ws;
}
}
+ #[cfg(all(feature = "voice", feature = "http-server"))]
pub mod streaming {
pub use openhuman_core::voice::streaming::handle_dictation_ws;
}