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
style: reorder imports and reformat assertions in managed catalog
Steven Enamakele411f59e9ec4
diff --git a/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs b/crates/openhuman-tinyhumans/src/inference/managed_catalog.rsindex e38554c91f..c6e6c6783b 100644--- a/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs+++ b/crates/openhuman-tinyhumans/src/inference/managed_catalog.rs@@ -15,14 +15,16 @@ use openhuman_embed::__host::inference_registry::{PreparedInspectionCatalog, ProviderContext,};use openhuman_embed::__host::security::credentials::session_support::{- classify_session_token, load_app_session_profile, publish_local_session_expiry,- resolve_backend_credential, BackendCredential, SessionTokenCheck,+ BackendCredential, SessionTokenCheck, classify_session_token, load_app_session_profile,+ publish_local_session_expiry, resolve_backend_credential,};use openhuman_embed::__host::util::url::join_url;use std::sync::Arc;use tinyinference_llm::catalog::{append_query_param, parse_models_response};use tinyinference_llm::model::discover::DiscoveryRequest;-use tinyinference_llm::providers::tinyhumans::{discovery_request, list_models as fetch_model_catalog};+use tinyinference_llm::providers::tinyhumans::{+ discovery_request, list_models as fetch_model_catalog,+};use super::PROVIDER_OPENHUMAN;use crate::backend::headers::attribution_headers;@@ -71,8 +73,8 @@ pub(super) fn inspection_entry() -> InspectionCatalogListing {Arc::new(|config: Config, request: InspectionCatalogRequest| {Box::pin(async move {use openhuman_embed::__host::security::credentials::session_support::{- check_session_backend, classify_session_token, load_app_session_profile_read_only,- SessionTokenCheck,+ SessionTokenCheck, check_session_backend, classify_session_token,+ load_app_session_profile_read_only,};let profile = load_app_session_profile_read_only(&config)diff --git a/crates/openhuman-tinyhumans/src/inference/managed_catalog_inspection_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_catalog_inspection_tests.rsindex 0d79bde425..23e6c77d60 100644--- a/crates/openhuman-tinyhumans/src/inference/managed_catalog_inspection_tests.rs+++ b/crates/openhuman-tinyhumans/src/inference/managed_catalog_inspection_tests.rs@@ -1,10 +1,10 @@use super::super::inspection_entry;use axum::{+ Json, Router,extract::State,http::{HeaderMap, StatusCode},response::{IntoResponse, Response},routing::get,- Json, Router,};use openhuman_embed::__host::config::Config;use openhuman_embed::__host::inference_registry::{@@ -17,8 +17,8 @@ use openhuman_embed::__host::security::credentials::{APP_SESSION_PROVIDER, DEFAULT_AUTH_PROFILE_NAME,};use std::sync::{- atomic::{AtomicUsize, Ordering},Arc,+ atomic::{AtomicUsize, Ordering},};fn with_backend_env_test_lock(future: impl std::future::Future<Output = ()>) {diff --git a/crates/openhuman-tinyhumans/src/inference/managed_catalog_tests.rs b/crates/openhuman-tinyhumans/src/inference/managed_catalog_tests.rsindex a2dc033bef..395a8adb58 100644--- a/crates/openhuman-tinyhumans/src/inference/managed_catalog_tests.rs+++ b/crates/openhuman-tinyhumans/src/inference/managed_catalog_tests.rs@@ -1,10 +1,10 @@use super::*;use axum::{+ Router,http::{HeaderMap, StatusCode},routing::get,- Router,};-use openhuman_embed::__host::security::credentials::{AuthService, APP_SESSION_PROVIDER};+use openhuman_embed::__host::security::credentials::{APP_SESSION_PROVIDER, AuthService};use std::sync::{Arc, Mutex};use tempfile::TempDir;@@ -95,10 +95,12 @@ fn limits_request_lists_the_catalog_keyed_by_the_inference_base() {};let request = limits_request("some/model", &config).expect("managed limits request");assert_eq!(request.endpoint, "https://api.tinyhumans.ai/openai/v1");- assert!(request- .listing_url- .as_deref()- .is_some_and(|url| url.ends_with("/openai/v1/models?catalog=openrouter")));+ assert!(+ request+ .listing_url+ .as_deref()+ .is_some_and(|url| url.ends_with("/openai/v1/models?catalog=openrouter"))+ );}#[test]