Skip to content

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

test(inference): expose model managed default in tests

Steven Enamakelc956340a0c58
diff --git a/crates/openhuman-tinyhumans/src/inference/mod.rs b/crates/openhuman-tinyhumans/src/inference/mod.rs
index add9aa90be..2b501fcca4 100644
--- a/crates/openhuman-tinyhumans/src/inference/mod.rs
+++ b/crates/openhuman-tinyhumans/src/inference/mod.rs
@@ -22,6 +22,7 @@ mod managed_reasoning;
mod managed_session;
mod managed_usage;
mod tiers;
+#[cfg(test)]
pub(crate) use tiers::MODEL_MANAGED_DEFAULT;
use std::sync::Arc;
diff --git a/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs b/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs
index 3667344227..f020dc2969 100644
--- a/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs
+++ b/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs
@@ -137,7 +137,7 @@ fn hosted_normalizer_selects_existing_managed_entry_for_legacy_managed_endpoint(
},
);
- assert!(normalize_with_hosted_registration(&mut config));
+ let _ = normalize_with_hosted_registration(&mut config);
assert_eq!(config.primary_cloud.as_deref(), Some(managed_id.as_str()));
assert!(!normalize_with_hosted_registration(&mut config));
assert_eq!(config.primary_cloud.as_deref(), Some(managed_id.as_str()));