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: reformat long lines in http backend and tests
Steven Enamakel6f9ea7b8f08e
diff --git a/crates/openhuman-core/src/inference/http/backend.rs b/crates/openhuman-core/src/inference/http/backend.rsindex 499bab57d9..2d6a119658 100644--- a/crates/openhuman-core/src/inference/http/backend.rs+++ b/crates/openhuman-core/src/inference/http/backend.rs@@ -106,7 +106,10 @@ pub(super) fn configured_models(config: &Config) -> Vec<ListedModel> {.map(str::trim).filter(|model| !model.is_empty()){- push(strip_temperature_suffix(default_model).to_string(), "openhuman");+ push(+ strip_temperature_suffix(default_model).to_string(),+ "openhuman",+ );}for cp in &config.cloud_providers {@@ -119,7 +122,10 @@ pub(super) fn configured_models(config: &Config) -> Vec<ListedModel> {}if !config.local_ai.chat_model_id.is_empty() {- push(format!("ollama:{}", config.local_ai.chat_model_id), "ollama");+ push(+ format!("ollama:{}", config.local_ai.chat_model_id),+ "ollama",+ );}for provider_string in [diff --git a/crates/openhuman-core/src/inference/http/backend_tests.rs b/crates/openhuman-core/src/inference/http/backend_tests.rsindex e84591ab42..24b3213759 100644--- a/crates/openhuman-core/src/inference/http/backend_tests.rs+++ b/crates/openhuman-core/src/inference/http/backend_tests.rs@@ -14,7 +14,10 @@ fn configured_models_lists_sentinel_and_strips_temperature_suffix() {config.default_model = Some("[email protected]".to_string());config.chat_provider = Some("acme:claude@1".to_string());config.local_ai.chat_model_id = "qwen".to_string();- let ids: Vec<String> = configured_models(&config).into_iter().map(|m| m.id).collect();+ let ids: Vec<String> = configured_models(&config)+ .into_iter()+ .map(|m| m.id)+ .collect();assert_eq!(ids[0], "openhuman");assert!(ids.contains(&"gpt-4o".to_string()));assert!(ids.contains(&"acme:claude".to_string()));