Skip to content

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

refactor(inference): adjust status module exports

Steven Enamakeld497678254d3
diff --git a/crates/openhuman-core/src/inference/ops.rs b/crates/openhuman-core/src/inference/ops.rs
index 43f9b750f6..f4ff5951d9 100644
--- a/crates/openhuman-core/src/inference/ops.rs
+++ b/crates/openhuman-core/src/inference/ops.rs
@@ -6,7 +6,6 @@ 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,
@@ -17,6 +16,7 @@ pub use oauth::{
inference_openai_oauth_status, inference_provider_auth_errors,
};
pub use sentiment::inference_analyze_sentiment;
+pub(super) use status::{expected_test_provider_model_error_kind, InferenceTestChatModelResult};
pub use status::{
inference_diagnostics, inference_prompt, inference_status, inference_summarize,
inference_test_provider_model, inference_vision_prompt,
diff --git a/crates/openhuman-core/src/inference/ops/status.rs b/crates/openhuman-core/src/inference/ops/status.rs
index b1b95dc755..9ee14eb04f 100644
--- a/crates/openhuman-core/src/inference/ops/status.rs
+++ b/crates/openhuman-core/src/inference/ops/status.rs
@@ -187,4 +187,3 @@ pub async fn inference_diagnostics(config: &Config) -> Result<Outcome<Value>, St
}
result
}
-
diff --git a/crates/openhuman-core/src/platform/cost/global_tests.rs b/crates/openhuman-core/src/platform/cost/global_tests.rs
index d98b732007..8254a1f40f 100644
--- a/crates/openhuman-core/src/platform/cost/global_tests.rs
+++ b/crates/openhuman-core/src/platform/cost/global_tests.rs
@@ -121,7 +121,10 @@ fn native_usage_round_trip_preserves_submicro_usd_and_charge_state_in_cost_rows(
);
let recovered = tinyinference_llm::usage::usage_info_from_response(&response)
.expect("provider usage survives response conversion");
- assert_eq!(recovered.charged_amount_usd.to_bits(), billed.charged_amount_usd.to_bits());
+ assert_eq!(
+ recovered.charged_amount_usd.to_bits(),
+ billed.charged_amount_usd.to_bits()
+ );
assert!(recovered.charge_reported);
assert!(!recovered.cost_is_estimate);
record_provider_usage(&DispatchCtx::ambient(), REPORTED_MODEL, &recovered);