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
refactor(inference): prioritize hint role for provider models
Steven Enamakel9aff0c0aecec
diff --git a/crates/openhuman-core/src/inference/provider_model.rs b/crates/openhuman-core/src/inference/provider_model.rsindex a5d7e1a55d..a3d895cc1f 100644--- a/crates/openhuman-core/src/inference/provider_model.rs+++ b/crates/openhuman-core/src/inference/provider_model.rs@@ -12,7 +12,11 @@ pub fn role_for_model(provider_id: &str, model: &str) -> String {/// Generic workload role for a provider-owned model alias.pub fn role_for_provider_model(provider_id: &str, model: &str) -> &'static str {- let role = crate::inference::registry::provider_model_role(provider_id, model);+ let role = model+ .strip_prefix("hint:")+ .filter(|role| WORKLOAD_ROLES.contains(role))+ .map(str::to_string)+ .or_else(|| crate::inference::registry::provider_model_role(provider_id, model));role.as_deref().and_then(|role| WORKLOAD_ROLES.iter().copied().find(|known| *known == role)).unwrap_or("chat")