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(config): unify AI provider settings across configuration schemas
Steven Enamakel5e5fa12e7ffe
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs b/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rsindex 427c91341e..3c4144b2c6 100644--- a/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs+++ b/crates/openhuman-core/src/agent/tinyagents/host/model_resolver.rs@@ -91,7 +91,6 @@ const CHAT_WORKLOAD_ROLES: &[&str] = &["vision","memory","summarization",- "learning",];/// The role a team lead takes when the caller supplied none.diff --git a/crates/openhuman-core/src/config/migrations/unify_ai_provider_settings.rs b/crates/openhuman-core/src/config/migrations/unify_ai_provider_settings.rsindex 26248eba5d..d7cb7b372a 100644--- a/crates/openhuman-core/src/config/migrations/unify_ai_provider_settings.rs+++ b/crates/openhuman-core/src/config/migrations/unify_ai_provider_settings.rs@@ -9,7 +9,7 @@//! - `inference_url` + `model_routes` — global cloud preset//! - `reasoning_provider` / `agentic_provider` / `coding_provider`//! — per-role chat (#1710, partial)-//! - `local_ai.usage.{embeddings,heartbeat,learning_reflection,subconscious}`+//! - `local_ai.usage.{embeddings,heartbeat,subconscious}`//! — local-vs-cloud booleans//!//! After this migration there is one grammar — provider strings parsed by@@ -18,7 +18,7 @@//!//! ```text//! reasoning_provider, agentic_provider, coding_provider,-//! memory_provider, embeddings_provider, learning_provider+//! memory_provider, embeddings_provider//! ```//!//! The legacy `local_ai.usage.heartbeat` / `local_ai.usage.subconscious`@@ -223,15 +223,6 @@ fn derive_workload_providers(config: &mut Config, stats: &mut MigrationStats) {};set_field(&mut config.embeddings_provider, embeddings_value, stats);- // Learning uses the chat model when local.- let learning_value =- if config.local_ai.usage.learning_reflection && runtime_on && !chat_model.is_empty() {- format!("ollama:{}", chat_model)- } else {- "cloud".to_string()- };- set_field(&mut config.learning_provider, learning_value, stats);-// The three chat workloads (reasoning/agentic/coding) intentionally// stay None — the factory treats unset as "cloud" which routes to// primary_cloud. No equivalent of "force this to local" existed in thediff --git a/crates/openhuman-core/src/config/schema/local_ai.rs b/crates/openhuman-core/src/config/schema/local_ai.rsindex a772417a61..68cbe23314 100644--- a/crates/openhuman-core/src/config/schema/local_ai.rs+++ b/crates/openhuman-core/src/config/schema/local_ai.rs@@ -20,10 +20,6 @@ pub struct LocalAiUsage {#[serde(default)]pub heartbeat: bool,/// When true (and `runtime_enabled`), use the local model for- /// learning/reflection passes.- #[serde(default)]- pub learning_reflection: bool,- /// When true (and `runtime_enabled`), use the local model for/// subconscious evaluation and execution.#[serde(default)]pub subconscious: bool,@@ -271,12 +267,6 @@ impl LocalAiConfig {self.runtime_enabled && self.usage.heartbeat}- /// **Deprecated** — read from `Config::workload_uses_local("learning")`.- #[deprecated(note = "Use Config::workload_uses_local(\"learning\")")]- pub fn use_local_for_learning(&self) -> bool {- self.runtime_enabled && self.usage.learning_reflection- }-/// **Deprecated** — read from `Config::workload_uses_local("subconscious")`.#[deprecated(note = "Use Config::workload_uses_local(\"subconscious\")")]pub fn use_local_for_subconscious(&self) -> bool {diff --git a/crates/openhuman-core/src/config/schema/types/config.rs b/crates/openhuman-core/src/config/schema/types/config.rsindex 589515d3d9..c9a31afb51 100644--- a/crates/openhuman-core/src/config/schema/types/config.rs+++ b/crates/openhuman-core/src/config/schema/types/config.rs@@ -378,7 +378,7 @@ pub struct Config {#[serde(default)]pub vision_provider: Option<String>,- /// Provider string for memory-tree extract + summarise workloads.+ /// Provider string for the summarisation workload.#[serde(default)]pub memory_provider: Option<String>,@@ -391,10 +391,6 @@ pub struct Config {#[serde(default, skip_serializing_if = "Option::is_none")]pub custom_embeddings: Option<CustomEmbeddingsConfig>,- /// Provider string for learning / reflection passes.- #[serde(default)]- pub learning_provider: Option<String>,-/// Node.js managed runtime configuration (skills that need `node`/`npm`).#[serde(default)]pub node: NodeConfig,diff --git a/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs b/crates/openhuman-core/src/config/schemas/schema_defs/inference.rsindex 3ea503ac17..93aa2d9bb6 100644--- a/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs+++ b/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs@@ -95,7 +95,7 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {optional_string("agentic_provider", "Provider string for sub-agent / tool-loop workloads."),optional_string("coding_provider", "Provider string for code-generation workloads."),optional_string("vision_provider", "Provider string for the vision / multimodal workload (managed default: the default model)."),- optional_string("memory_provider", "Provider string for memory-tree extract + summarise."),+ optional_string("memory_provider", "Provider string for summarisation."),optional_string("embeddings_provider", "Provider string for embedding generation."),],outputs: vec![json_output("snapshot", "Updated config snapshot.")],diff --git a/crates/openhuman-core/src/inference/provider/factory.rs b/crates/openhuman-core/src/inference/provider/factory.rsindex 2a528ebb8d..3e72a52858 100644--- a/crates/openhuman-core/src/inference/provider/factory.rs+++ b/crates/openhuman-core/src/inference/provider/factory.rs@@ -1,6 +1,6 @@//! Unified chat-provider factory.//!-//! Resolves workload names (e.g. `"reasoning"`, `"learning"`) to a+//! Resolves workload names (e.g. `"reasoning"`, `"summarization"`) to a//! crate-native `ChatModel` plus the concrete model id selected for a workload.//!//! ## Provider-string grammardiff --git a/crates/openhuman-core/src/inference/provider/fallback_diagnostics.rs b/crates/openhuman-core/src/inference/provider/fallback_diagnostics.rsindex 192d0919c9..7343ff0403 100644--- a/crates/openhuman-core/src/inference/provider/fallback_diagnostics.rs+++ b/crates/openhuman-core/src/inference/provider/fallback_diagnostics.rs@@ -44,7 +44,6 @@ const CLOUD_FALLBACK_ROLES: &[&str] = &["embeddings","memory","summarization",- "learning","agentic","burst",];