Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore: files changed crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs,cra

Steven Enamakelf6a7e4406f36
diff --git a/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs b/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs
index 2a4c7bb7f4..b87534d864 100644
--- a/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs
+++ b/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs
@@ -53,10 +53,7 @@
//! - Never touches keys/secrets or any other config field.
use crate::config::Config;
-use crate::inference::provider::factory::{
- LM_STUDIO_PROVIDER_PREFIX, LOCAL_OPENAI_PROVIDER_PREFIX, MLX_PROVIDER_PREFIX,
- OLLAMA_PROVIDER_PREFIX, OMLX_PROVIDER_PREFIX, PROVIDER_OPENHUMAN,
-};
+use crate::inference::provider::factory::PROVIDER_OPENHUMAN;
use std::collections::HashSet;
/// Counters returned by [`run`] for diagnostics. Logged at INFO once per run.
@@ -104,20 +101,14 @@ pub fn run(config: &mut Config) -> anyhow::Result<MigrationStats> {
};
let s = raw.trim();
- // Managed sentinels and factory-resolvable local providers (ollama:,
- // lmstudio:, mlx:, omlx:, local-openai:) resolve without a
- // cloud_providers entry — leave them alone. Keep this in sync with the
- // local provider prefixes the factory accepts.
+ // Managed sentinels and owner-classified local providers resolve
+ // without a cloud_providers entry — leave them alone.
// Only embeddings accept `none` as an explicit opt-out.
if (workload == "embeddings" && s == "none")
|| s.is_empty()
|| s == "cloud"
|| s == PROVIDER_OPENHUMAN
- || s.starts_with(OLLAMA_PROVIDER_PREFIX)
- || s.starts_with(LM_STUDIO_PROVIDER_PREFIX)
- || s.starts_with(MLX_PROVIDER_PREFIX)
- || s.starts_with(OMLX_PROVIDER_PREFIX)
- || s.starts_with(LOCAL_OPENAI_PROVIDER_PREFIX)
+ || tinyinference_local::profile::is_local_provider_string(s)
{
continue;
}
diff --git a/crates/openhuman-core/src/inference/provider/factory/access_gates.rs b/crates/openhuman-core/src/inference/provider/factory/access_gates.rs
index 3fa6d15077..b74cafe0ff 100644
--- a/crates/openhuman-core/src/inference/provider/factory/access_gates.rs
+++ b/crates/openhuman-core/src/inference/provider/factory/access_gates.rs
@@ -54,9 +54,6 @@ pub(super) fn local_only_violation(
if tinyinference_local::profile::is_local_provider_string(p) {
return None;
}
- if ProviderRoute::parse(p).is_some_and(|route| !route.is_external()) {
- return None;
- }
Some(external_provider_label(p))
}