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
feat(inference): resolve default cloud provider for chat models
Steven Enamakel2cb29ad74677
diff --git a/crates/openhuman-core/src/inference/provider/factory/chat_model.rs b/crates/openhuman-core/src/inference/provider/factory/chat_model.rsindex 15e090c345..2fab01654b 100644--- a/crates/openhuman-core/src/inference/provider/factory/chat_model.rs+++ b/crates/openhuman-core/src/inference/provider/factory/chat_model.rs@@ -526,6 +526,13 @@ pub(super) fn create_chat_model_from_string_with_model_id_inner(provider: &str,config: &Config,) -> anyhow::Result<(Arc<dyn ChatModel<()>>, String)> {+ let resolved_provider;+ let provider = if provider.trim().is_empty() || provider.trim() == "cloud" {+ resolved_provider = resolve_primary_cloud_provider_string(config);+ resolved_provider.as_str()+ } else {+ provider+ };build_one_shot(&DispatchCtx::ambient(), role, Some(provider), config)}