The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(inference): export utility functions from ops module
Steven Enamakel2b8e43df0032
diff --git a/crates/openhuman-core/src/inference/ops.rs b/crates/openhuman-core/src/inference/ops.rsindex 3ea548af4d..43f9b750f6 100644--- a/crates/openhuman-core/src/inference/ops.rs+++ b/crates/openhuman-core/src/inference/ops.rs@@ -5,6 +5,8 @@ mod oauth;mod sentiment;mod status;+pub(super) use models::is_unknown_provider_user_config;+pub(super) use status::{expected_test_provider_model_error_kind, InferenceTestChatModelResult};pub use models::{inference_get_client_config, inference_list_models, inference_update_local_settings,inference_update_model_settings,diff --git a/crates/openhuman-core/src/inference/ops/models.rs b/crates/openhuman-core/src/inference/ops/models.rsindex e856f6c043..f6bece725b 100644--- a/crates/openhuman-core/src/inference/ops/models.rs+++ b/crates/openhuman-core/src/inference/ops/models.rs@@ -9,7 +9,7 @@ use tracing::{debug, error, warn};const LOG_PREFIX: &str = "[inference::ops]";-fn is_unknown_provider_user_config(err: &str) -> bool {+pub(super) fn is_unknown_provider_user_config(err: &str) -> bool {err.contains("no cloud provider with id or slug")}diff --git a/crates/openhuman-core/src/inference/ops/status.rs b/crates/openhuman-core/src/inference/ops/status.rsindex 10b692bdf2..b1b95dc755 100644--- a/crates/openhuman-core/src/inference/ops/status.rs+++ b/crates/openhuman-core/src/inference/ops/status.rs@@ -14,7 +14,7 @@ pub struct InferenceTestChatModelResult {pub reply: String,}-fn expected_test_provider_model_error_kind(+pub(super) fn expected_test_provider_model_error_kind(err: &str,) -> Option<crate::core::observability::ExpectedErrorKind> {crate::core::observability::expected_error_kind(err)