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
test(config): add coverage for model routing and config overrides
Steven Enamakel93c94f2e3578
diff --git a/crates/openhuman-core/src/agent/triage/routing_tests.rs b/crates/openhuman-core/src/agent/triage/routing_tests.rsindex 4732f24d00..01fa9b82d5 100644--- a/crates/openhuman-core/src/agent/triage/routing_tests.rs+++ b/crates/openhuman-core/src/agent/triage/routing_tests.rs@@ -13,7 +13,6 @@ fn openai_entry(id: &str, slug: &str) -> CloudProviderCreds {endpoint: "https://api.openai.com/v1".to_string(),auth_style: AuthStyle::Bearer,default_model: Some("gpt-4o".to_string()),- ..Default::default()}}diff --git a/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs b/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rsindex 50df4cc713..edd70e5e24 100644--- a/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs+++ b/crates/openhuman-core/src/config/ops_model_and_local_ai_tests.rs@@ -214,7 +214,6 @@ async fn apply_model_settings_preserves_existing_reserved_slug_cloud_providers()endpoint: "https://api.tinyhumans.ai".into(),auth_style: AuthStyle::OpenhumanJwt,default_model: Some("reasoning-v1".into()),- ..Default::default()},CloudProviderCreds {id: "myopenai-1".into(),@@ -223,7 +222,6 @@ async fn apply_model_settings_preserves_existing_reserved_slug_cloud_providers()endpoint: "https://api.openai.com".into(),auth_style: AuthStyle::Bearer,default_model: Some("gpt-4o".into()),- ..Default::default()},];@@ -239,7 +237,6 @@ async fn apply_model_settings_preserves_existing_reserved_slug_cloud_providers()endpoint: "https://api.openai.com/v1".into(),auth_style: AuthStyle::Bearer,default_model: Some("gpt-4o-mini".into()),- ..Default::default()}]),..Default::default()};@@ -281,7 +278,6 @@ async fn apply_model_settings_does_not_double_add_reserved_entries() {endpoint: "https://api.tinyhumans.ai".into(),auth_style: AuthStyle::OpenhumanJwt,default_model: Some("reasoning-v1".into()),- ..Default::default()}];let patch = ModelSettingsPatch {@@ -292,7 +288,6 @@ async fn apply_model_settings_does_not_double_add_reserved_entries() {endpoint: "https://api.tinyhumans.ai".into(),auth_style: AuthStyle::OpenhumanJwt,default_model: Some("reasoning-v1".into()),- ..Default::default()}]),..Default::default()};diff --git a/crates/openhuman-core/src/config/schema/cli_overrides/ops_tests.rs b/crates/openhuman-core/src/config/schema/cli_overrides/ops_tests.rsindex 5892aeca44..1c7956c9f3 100644--- a/crates/openhuman-core/src/config/schema/cli_overrides/ops_tests.rs+++ b/crates/openhuman-core/src/config/schema/cli_overrides/ops_tests.rs@@ -10,7 +10,6 @@ fn provider() -> CloudProviderCreds {endpoint: "https://api.openai.com/v1".into(),auth_style: AuthStyle::Bearer,default_model: Some("gpt-default".into()),- ..Default::default()}}diff --git a/crates/openhuman-core/src/config/schema/load_migration_tests.rs b/crates/openhuman-core/src/config/schema/load_migration_tests.rsindex 02273ce2f0..a00b7aca03 100644--- a/crates/openhuman-core/src/config/schema/load_migration_tests.rs+++ b/crates/openhuman-core/src/config/schema/load_migration_tests.rs@@ -346,7 +346,6 @@ fn migrate_cloud_provider_slugs_routes_cloud_to_legacy_custom_when_primary_is_opendpoint: "https://api.example.com/v1/".into(),auth_style: crate::config::schema::AuthStyle::Bearer,default_model: Some("gpt-4o-mini".into()),- ..Default::default()},];diff --git a/crates/openhuman-core/src/inference/provider/factory_tests.rs b/crates/openhuman-core/src/inference/provider/factory_tests.rsindex c7357a4919..a42b320ae5 100644--- a/crates/openhuman-core/src/inference/provider/factory_tests.rs+++ b/crates/openhuman-core/src/inference/provider/factory_tests.rs@@ -60,7 +60,6 @@ fn openai_entry(id: &str, slug: &str) -> CloudProviderCreds {endpoint: "https://api.openai.com/v1".to_string(),auth_style: AuthStyle::Bearer,default_model: Some("gpt-4o".to_string()),- ..Default::default()}}@@ -72,7 +71,6 @@ fn anthropic_entry(id: &str, slug: &str) -> CloudProviderCreds {endpoint: "https://api.anthropic.com/v1".to_string(),auth_style: AuthStyle::Anthropic,default_model: Some("claude-sonnet-4-6".to_string()),- ..Default::default()}}@@ -84,7 +82,6 @@ fn nvidia_nim_entry(id: &str, default_model: Option<&str>) -> CloudProviderCredsendpoint: "https://integrate.api.nvidia.com/v1".to_string(),auth_style: AuthStyle::Bearer,default_model: default_model.map(ToString::to_string),- ..Default::default()}}@@ -143,7 +140,6 @@ fn deepseek_entry(id: &str) -> CloudProviderCreds {endpoint: "https://api.deepseek.com/v1".to_string(),auth_style: AuthStyle::Bearer,default_model: Some("deepseek-chat".to_string()),- ..Default::default()}}