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
chore(ops): reformat imports and test assertions for consistency
Steven Enamakelda17d51cbd46
diff --git a/crates/openhuman-core/src/inference/provider/ops/http_error.rs b/crates/openhuman-core/src/inference/provider/ops/http_error.rsindex adbe9e1746..1185aa61e4 100644--- a/crates/openhuman-core/src/inference/provider/ops/http_error.rs+++ b/crates/openhuman-core/src/inference/provider/ops/http_error.rs@@ -29,7 +29,9 @@ mod quota_and_credits;// (mirrors the pre-split `include!`-shared scope).use crate::inference::provider::openhuman_backend_model;use tinyinference_core::sanitize::sanitize_api_error;-use tinyinference_llm::failure::{body_indicates_quota_exhausted, is_context_window_exceeded_message};+use tinyinference_llm::failure::{+ body_indicates_quota_exhausted, is_context_window_exceeded_message,+};pub use auth_failure::{is_backend_auth_failure, is_byo_provider_auth_failure_http,diff --git a/crates/openhuman-core/src/inference/provider/ops/http_error_tests.rs b/crates/openhuman-core/src/inference/provider/ops/http_error_tests.rsindex 62c54f7700..1266ef45ec 100644--- a/crates/openhuman-core/src/inference/provider/ops/http_error_tests.rs+++ b/crates/openhuman-core/src/inference/provider/ops/http_error_tests.rs@@ -107,7 +107,9 @@ fn quota_and_credits_matchers_do_not_overlap_on_c9a() {StatusCode::INTERNAL_SERVER_ERROR,C9A_BODY));- assert!(tinyinference_llm::failure::body_indicates_quota_exhausted(C9A_BODY));+ assert!(tinyinference_llm::failure::body_indicates_quota_exhausted(+ C9A_BODY+ ));}/// Verbatim TAURI-RUST-8FQ Responses-API body. The matcher keys on thisdiff --git a/crates/openhuman-core/src/inference/provider/ops/mod.rs b/crates/openhuman-core/src/inference/provider/ops/mod.rsindex d72755c6ab..20ac7f6553 100644--- a/crates/openhuman-core/src/inference/provider/ops/mod.rs+++ b/crates/openhuman-core/src/inference/provider/ops/mod.rs@@ -15,20 +15,18 @@ mod provider_factory;pub use http_error::{api_error, is_backend_auth_failure, is_backend_error_code_owned, is_budget_exhausted_http_400,is_byo_provider_auth_failure_http, is_custom_openai_upstream_bad_request_http_400,- is_local_provider_no_model_loaded,- is_ollama_cloud_internal_500, is_ollama_cloud_internal_500_message,- is_openai_oauth_session_expired_http, is_provider_access_policy_denied_http_403,- is_provider_config_rejection_http, is_provider_insufficient_credits_402,- is_provider_moderation_rejection_http_400,- local_provider_no_model_loaded_user_message,- log_backend_error_code_owned, log_budget_exhausted_http_400, log_byo_provider_auth_failure,- log_context_window_exceeded, log_custom_openai_upstream_bad_request_http_400,- log_local_provider_no_model_loaded, log_ollama_cloud_internal_500,- log_openai_oauth_session_expired, log_provider_access_policy_denied_http_403,- log_provider_config_rejection, log_provider_insufficient_credits_402,- log_provider_moderation_rejection, log_provider_quota_exhausted,- ollama_cloud_internal_500_user_message, publish_backend_session_expired,- should_report_provider_http_failure,+ is_local_provider_no_model_loaded, is_ollama_cloud_internal_500,+ is_ollama_cloud_internal_500_message, is_openai_oauth_session_expired_http,+ is_provider_access_policy_denied_http_403, is_provider_config_rejection_http,+ is_provider_insufficient_credits_402, is_provider_moderation_rejection_http_400,+ local_provider_no_model_loaded_user_message, log_backend_error_code_owned,+ log_budget_exhausted_http_400, log_byo_provider_auth_failure, log_context_window_exceeded,+ log_custom_openai_upstream_bad_request_http_400, log_local_provider_no_model_loaded,+ log_ollama_cloud_internal_500, log_openai_oauth_session_expired,+ log_provider_access_policy_denied_http_403, log_provider_config_rejection,+ log_provider_insufficient_credits_402, log_provider_moderation_rejection,+ log_provider_quota_exhausted, ollama_cloud_internal_500_user_message,+ publish_backend_session_expired, should_report_provider_http_failure,};pub use models::{diff --git a/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs b/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rsindex e5bcd9d92a..61f159a015 100644--- a/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs+++ b/crates/openhuman-core/src/inference/provider/ops_tests_models_parsing_tests.rs@@ -287,7 +287,9 @@ async fn api_error_monthly_quota_returns_message_via_demoted_branch() {);// The body must classify as quota-exhausted so the demote branch — not the// 500 status gate — handles it.- assert!(tinyinference_llm::failure::body_indicates_quota_exhausted(body));+ assert!(tinyinference_llm::failure::body_indicates_quota_exhausted(+ body+ ));assert!(should_report_provider_http_failure(StatusCode::INTERNAL_SERVER_ERROR));