Skip to content

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

fix(provider): update access_gates visibility and call paths

Steven Enamakel11f9462f62f8
diff --git a/crates/openhuman-core/src/flows/ops/inference_readiness.rs b/crates/openhuman-core/src/flows/ops/inference_readiness.rs
index f5e911a7bd..639a3c7193 100644
--- a/crates/openhuman-core/src/flows/ops/inference_readiness.rs
+++ b/crates/openhuman-core/src/flows/ops/inference_readiness.rs
@@ -305,9 +305,9 @@ pub(super) async fn evaluate_inference_readiness(
// (redundant, in that case) early rejection here is test-only skipped.
#[cfg(not(test))]
let session_result = if needs_backend_session {
- crate::inference::provider::factory::verify_backend_session_active(config)
+ crate::inference::provider::factory::access_gates::verify_backend_session_active(config)
} else {
- crate::inference::provider::factory::verify_session_active(config)
+ crate::inference::provider::factory::access_gates::verify_session_active(config)
};
#[cfg(not(test))]
if let Err(e) = session_result {
diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rs
index 3329026f39..12732051e1 100644
--- a/crates/openhuman-core/src/inference/provider/factory.rs
+++ b/crates/openhuman-core/src/inference/provider/factory.rs
@@ -37,7 +37,7 @@
//! - [`chat_model`] — the one-shot `create_chat_model*` entry points.
//! - [`turn_model`] — the per-turn `create_turn_chat_model*` entry points.
-mod access_gates;
+pub(crate) mod access_gates;
mod chat_model;
mod cloud_slug;
mod credentials;