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
fix(inference): stop rewriting delegate agent models during tier normalization
Steven Enamakele83154054689
diff --git a/crates/openhuman-tinyhumans/src/inference/tiers.rs b/crates/openhuman-tinyhumans/src/inference/tiers.rsindex 71f58ab60f..781accba66 100644--- a/crates/openhuman-tinyhumans/src/inference/tiers.rs+++ b/crates/openhuman-tinyhumans/src/inference/tiers.rs@@ -135,9 +135,6 @@ pub(crate) fn normalize_config(config: &mut Config) -> bool {changed |= rewrite(model);}}- for delegate in config.agents.values_mut() {- changed |= rewrite(&mut delegate.model);- }for route in &mut config.model_routes {changed |= rewrite(&mut route.model);}diff --git a/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs b/crates/openhuman-tinyhumans/src/inference/tiers_tests.rsindex a24fffe489..70874b4283 100644--- a/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs+++ b/crates/openhuman-tinyhumans/src/inference/tiers_tests.rs@@ -16,23 +16,12 @@ fn hosted_normalizer_rewrites_legacy_tiers_and_preserves_concrete_pins() {..Config::default()};config.orchestrator.model = Some("custom/orchestrator-model".to_string());- config.agents.insert(- "pinned".to_string(),- openhuman_embed::__host::config::schema::DelegateAgentConfig {- model: "vendor/model-id".to_string(),- system_prompt: None,- temperature: None,- max_depth: 3,- },- );-assert!(normalize_with_hosted_registration(&mut config));assert_eq!(config.default_model.as_deref(), Some(MODEL_MANAGED_DEFAULT));assert_eq!(config.orchestrator.model.as_deref(),Some("custom/orchestrator-model"));- assert_eq!(config.agents["pinned"].model, "vendor/model-id");assert!(!normalize_with_hosted_registration(&mut config));}@@ -50,15 +39,6 @@ fn hosted_normalizer_covers_all_legacy_model_fields_and_preserves_non_tiers() {agent_model: Some("burst-v1".to_string()),},);- config.agents.insert(- "legacy".to_string(),- openhuman_embed::__host::config::schema::DelegateAgentConfig {- model: "coding-v1".to_string(),- system_prompt: None,- temperature: None,- max_depth: 3,- },- );config.model_routes.push(openhuman_embed::__host::config::schema::ModelRouteConfig {@@ -94,7 +74,6 @@ fn hosted_normalizer_covers_all_legacy_model_fields_and_preserves_non_tiers() {config.teams["team"].agent_model.as_deref(),Some(MODEL_MANAGED_DEFAULT));- assert_eq!(config.agents["legacy"].model, MODEL_MANAGED_DEFAULT);assert_eq!(config.model_routes[0].model, MODEL_MANAGED_DEFAULT);assert_eq!(config.model_routes[1].model, "vendor/pinned");assert_eq!(config.model_routes[2].model, "hint:unknown");