Skip to content

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

chore(inference): gate test-only helpers behind cfg(test)

Steven Enamakelf48f62bc9ec0
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_embedding.rs b/crates/openhuman-tinyhumans/src/inference/managed_embedding.rs
index aca01b66bf..37566b30b0 100644
--- a/crates/openhuman-tinyhumans/src/inference/managed_embedding.rs
+++ b/crates/openhuman-tinyhumans/src/inference/managed_embedding.rs
@@ -101,6 +101,7 @@ impl ManagedEmbeddingModel {
/// This embedder with its egress disclosures routed to `chat` (the turn's
/// thread and client); `None` leaves them unrouted. Shares the transport,
/// so it is cheap to do per turn.
+ #[cfg(test)]
#[must_use]
pub fn routed_to(&self, chat: Option<ApprovalChatContext>) -> Self {
Self {
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_model.rs b/crates/openhuman-tinyhumans/src/inference/managed_model.rs
index 1f8a89a9bc..839f25ea63 100644
--- a/crates/openhuman-tinyhumans/src/inference/managed_model.rs
+++ b/crates/openhuman-tinyhumans/src/inference/managed_model.rs
@@ -100,11 +100,6 @@ impl OpenHumanBackendModel {
self
}
- pub fn with_default_model(mut self, model: impl Into<String>) -> Self {
- self.default_model = resolve_model(&model.into());
- self
- }
-
/// Force prompt-guided tool calling for toolsets that exceed the managed
/// backend's native grammar ceiling.
pub fn with_native_tool_calling(mut self, enabled: bool) -> Self {