Skip to content

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

fix(config): rename provider references to inference provider

Steven Enamakeled1ca150c7ed
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 a1c459b43f..424b1d5b36 100644
--- a/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs
+++ b/crates/openhuman-core/src/config/migrations/reconcile_orphaned_providers.rs
@@ -189,7 +189,6 @@ fn workload_fields(config: &mut Config) -> [(&'static str, &mut Option<String>);
("vision", &mut config.vision_provider),
("memory", &mut config.memory_provider),
("embeddings", &mut config.embeddings_provider),
- ("learning", &mut config.learning_provider),
]
}
diff --git a/crates/openhuman-core/src/config/ops/loader/snapshot.rs b/crates/openhuman-core/src/config/ops/loader/snapshot.rs
index be7004331e..375a72c25f 100644
--- a/crates/openhuman-core/src/config/ops/loader/snapshot.rs
+++ b/crates/openhuman-core/src/config/ops/loader/snapshot.rs
@@ -107,7 +107,6 @@ pub fn client_config_json(config: &Config) -> serde_json::Value {
"vision_provider": config.vision_provider,
"memory_provider": config.memory_provider,
"embeddings_provider": config.embeddings_provider,
- "learning_provider": config.learning_provider,
"voice_providers": config.voice_providers.iter().map(|v| {
serde_json::json!({
"id": v.id,
diff --git a/crates/openhuman-core/src/config/ops/model.rs b/crates/openhuman-core/src/config/ops/model.rs
index 925fa6a70d..5a65f3135d 100644
--- a/crates/openhuman-core/src/config/ops/model.rs
+++ b/crates/openhuman-core/src/config/ops/model.rs
@@ -39,7 +39,6 @@ pub struct ModelSettingsPatch {
pub vision_provider: Option<String>,
pub memory_provider: Option<String>,
pub embeddings_provider: Option<String>,
- pub learning_provider: Option<String>,
}
#[derive(Debug, Clone, Default)]
@@ -77,7 +76,6 @@ pub struct LocalAiSettingsPatch {
pub model_id: Option<String>,
pub chat_model_id: Option<String>,
pub usage_embeddings: Option<bool>,
- pub usage_learning_reflection: Option<bool>,
pub api_key: Option<String>,
}
@@ -390,9 +388,6 @@ pub async fn apply_model_settings(
if let Some(s) = update.embeddings_provider {
config.embeddings_provider = normalise_provider(s);
}
- if let Some(s) = update.learning_provider {
- config.learning_provider = normalise_provider(s);
- }
complete_byok_route(config, &explicit_role_pins);
@@ -553,9 +548,6 @@ pub async fn apply_local_ai_settings(
if let Some(v) = update.usage_embeddings {
config.local_ai.usage.embeddings = v;
}
- if let Some(v) = update.usage_learning_reflection {
- config.local_ai.usage.learning_reflection = v;
- }
if let Some(api_key) = update.api_key {
let trimmed = api_key.trim();
config.local_ai.api_key = if trimmed.is_empty() {
diff --git a/crates/openhuman-core/src/config/schema/load/migrate.rs b/crates/openhuman-core/src/config/schema/load/migrate.rs
index 503a3f351c..8face2ff69 100644
--- a/crates/openhuman-core/src/config/schema/load/migrate.rs
+++ b/crates/openhuman-core/src/config/schema/load/migrate.rs
@@ -165,7 +165,6 @@ pub(crate) fn migrate_cloud_provider_slugs(config: &mut Config) {
rewrite(&mut config.vision_provider);
rewrite(&mut config.memory_provider);
rewrite(&mut config.embeddings_provider);
- rewrite(&mut config.learning_provider);
fn normalize_provider_endpoint(url: &str) -> String {
url.trim().trim_end_matches('/').to_ascii_lowercase()
diff --git a/crates/openhuman-core/src/config/schema/types/defaults.rs b/crates/openhuman-core/src/config/schema/types/defaults.rs
index f8e4f9be4f..531efb591c 100644
--- a/crates/openhuman-core/src/config/schema/types/defaults.rs
+++ b/crates/openhuman-core/src/config/schema/types/defaults.rs
@@ -98,7 +98,6 @@ impl Default for Config {
memory_provider: None,
embeddings_provider: None,
custom_embeddings: None,
- learning_provider: None,
node: NodeConfig::default(),
runtime_python: RuntimePythonConfig::default(),
runtime_pool: RuntimePoolConfig::default(),
diff --git a/crates/openhuman-core/src/config/schema/types/resolvers.rs b/crates/openhuman-core/src/config/schema/types/resolvers.rs
index d7bc0e0030..c7c162d08c 100644
--- a/crates/openhuman-core/src/config/schema/types/resolvers.rs
+++ b/crates/openhuman-core/src/config/schema/types/resolvers.rs
@@ -19,7 +19,7 @@ impl Config {
///
/// Recognised workload names:
/// `"chat"`, `"reasoning"`, `"agentic"`, `"coding"`, `"vision"`, `"memory"`,
- /// `"embeddings"`, `"learning"`.
+ /// `"embeddings"`.
///
/// Returns `None` when the provider isn't `"ollama:<model>"` (including
/// when the field is unset, blank, `"cloud"`, or any other prefix).
@@ -36,7 +36,6 @@ impl Config {
"vision" => self.vision_provider.as_deref(),
"memory" => self.memory_provider.as_deref(),
"embeddings" => self.embeddings_provider.as_deref(),
- "learning" => self.learning_provider.as_deref(),
_ => None,
}?;
let trimmed = raw.trim();
diff --git a/crates/openhuman-core/src/config/schemas/controllers/inference.rs b/crates/openhuman-core/src/config/schemas/controllers/inference.rs
index 06962e24c2..7169156b65 100644
--- a/crates/openhuman-core/src/config/schemas/controllers/inference.rs
+++ b/crates/openhuman-core/src/config/schemas/controllers/inference.rs
@@ -141,7 +141,6 @@ pub(super) fn handle_update_model_settings(params: Map<String, Value>) -> Contro
vision_provider: update.vision_provider,
memory_provider: update.memory_provider,
embeddings_provider: update.embeddings_provider,
- learning_provider: update.learning_provider,
};
to_json(config_rpc::load_and_apply_model_settings(patch).await?)
})
@@ -189,7 +188,6 @@ pub(super) fn handle_update_local_ai_settings(params: Map<String, Value>) -> Con
model_id: update.model_id,
chat_model_id: update.chat_model_id,
usage_embeddings: update.usage_embeddings,
- usage_learning_reflection: update.usage_learning_reflection,
api_key: update.api_key,
};
to_json(config_rpc::load_and_apply_local_ai_settings(patch).await?)
diff --git a/crates/openhuman-core/src/config/schemas/helpers.rs b/crates/openhuman-core/src/config/schemas/helpers.rs
index 36251a39b3..dd1b49fe3d 100644
--- a/crates/openhuman-core/src/config/schemas/helpers.rs
+++ b/crates/openhuman-core/src/config/schemas/helpers.rs
@@ -69,7 +69,6 @@ pub(super) struct ModelSettingsUpdate {
pub(super) vision_provider: Option<String>,
pub(super) memory_provider: Option<String>,
pub(super) embeddings_provider: Option<String>,
- pub(super) learning_provider: Option<String>,
}
#[derive(Debug, Deserialize)]
@@ -132,7 +131,6 @@ pub(super) struct LocalAiSettingsUpdate {
pub(super) model_id: Option<String>,
pub(super) chat_model_id: Option<String>,
pub(super) usage_embeddings: Option<bool>,
- pub(super) usage_learning_reflection: Option<bool>,
pub(super) api_key: Option<String>,
}
diff --git a/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs b/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs
index b53f3843b2..3ea503ac17 100644
--- a/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs
+++ b/crates/openhuman-core/src/config/schemas/schema_defs/inference.rs
@@ -97,7 +97,6 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
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("embeddings_provider", "Provider string for embedding generation."),
- optional_string("learning_provider", "Provider string for learning / reflection passes."),
],
outputs: vec![json_output("snapshot", "Updated config snapshot.")],
}),
@@ -169,10 +168,6 @@ pub(super) fn lookup(function: &str) -> Option<ControllerSchema> {
"usage_embeddings",
"Use the local model for embedding generation (when runtime_enabled).",
),
- optional_bool(
- "usage_learning_reflection",
- "Use the local model for learning/reflection passes (when runtime_enabled).",
- ),
],
outputs: vec![json_output("snapshot", "Updated config snapshot.")],
}),
diff --git a/crates/openhuman-core/src/inference/http/server.rs b/crates/openhuman-core/src/inference/http/server.rs
index 8db93155db..c92c283c50 100644
--- a/crates/openhuman-core/src/inference/http/server.rs
+++ b/crates/openhuman-core/src/inference/http/server.rs
@@ -341,7 +341,6 @@ async fn models_handler(State(_state): State<AppState>) -> Response {
config.vision_provider.as_deref(),
config.memory_provider.as_deref(),
config.embeddings_provider.as_deref(),
- config.learning_provider.as_deref(),
]
.into_iter()
.flatten()
diff --git a/crates/openhuman-core/src/inference/provider/factory/routing.rs b/crates/openhuman-core/src/inference/provider/factory/routing.rs
index f65bab057a..5af847d5c3 100644
--- a/crates/openhuman-core/src/inference/provider/factory/routing.rs
+++ b/crates/openhuman-core/src/inference/provider/factory/routing.rs
@@ -23,14 +23,11 @@ pub(super) fn configured_route_for_role<'a>(role: &str, config: &'a Config) -> O
// Tier-specific multimodal model; when unset it falls through to
// `primary_cloud` (→ managed `hint:vision`), as every unset route now does.
"vision" => config.vision_provider.as_deref(),
- // `memory_provider` covers both the memory-tree extract path and
- // the summarizer sub-agent (whose definition declares
- // `hint = "summarization"`). Both are "produce a condensed
- // representation of input text" — same model class, no reason
- // for a separate config knob.
+ // `memory_provider` routes the summarizer sub-agent (whose definition
+ // declares `hint = "summarization"`): "produce a condensed
+ // representation of input text".
"memory" | "summarization" => config.memory_provider.as_deref(),
"embeddings" => config.embeddings_provider.as_deref(),
- "learning" => config.learning_provider.as_deref(),
_ => None,
}
}
diff --git a/crates/openhuman-core/src/inference/schemas/catalog.rs b/crates/openhuman-core/src/inference/schemas/catalog.rs
index 6815b036fc..968dd37cd4 100644
--- a/crates/openhuman-core/src/inference/schemas/catalog.rs
+++ b/crates/openhuman-core/src/inference/schemas/catalog.rs
@@ -53,7 +53,6 @@ pub fn schemas(function: &str) -> ControllerSchema {
optional_string("vision_provider", "Optional vision / multimodal workload provider string."),
optional_string("memory_provider", "Optional memory workload provider string."),
optional_string("embeddings_provider", "Optional embeddings workload provider string."),
- optional_string("learning_provider", "Optional learning workload provider string."),
],
outputs: vec![json_output("snapshot", "Updated config snapshot.")],
},
@@ -76,7 +75,6 @@ pub fn schemas(function: &str) -> ControllerSchema {
optional_string("model_id", "Optional generic model id override."),
optional_string("chat_model_id", "Optional chat model id override."),
optional_bool("usage_embeddings", "Whether embeddings workload may use the local provider."),
- optional_bool("usage_learning_reflection", "Whether learning reflection workload may use the local provider."),
],
outputs: vec![json_output("snapshot", "Updated config snapshot.")],
},
diff --git a/crates/openhuman-core/src/inference/schemas/settings_handlers.rs b/crates/openhuman-core/src/inference/schemas/settings_handlers.rs
index 72d7094af9..ed4e25f196 100644
--- a/crates/openhuman-core/src/inference/schemas/settings_handlers.rs
+++ b/crates/openhuman-core/src/inference/schemas/settings_handlers.rs
@@ -56,7 +56,6 @@ pub(super) struct InferenceUpdateModelSettingsParams {
vision_provider: Option<String>,
memory_provider: Option<String>,
embeddings_provider: Option<String>,
- learning_provider: Option<String>,
}
#[derive(Debug, Deserialize)]
@@ -69,7 +68,6 @@ pub(super) struct InferenceUpdateLocalSettingsParams {
model_id: Option<String>,
chat_model_id: Option<String>,
usage_embeddings: Option<bool>,
- usage_learning_reflection: Option<bool>,
api_key: Option<String>,
}
@@ -219,7 +217,6 @@ pub(super) fn handle_inference_update_model_settings(
vision_provider: update.vision_provider,
memory_provider: update.memory_provider,
embeddings_provider: update.embeddings_provider,
- learning_provider: update.learning_provider,
};
to_json(crate::inference::rpc::inference_update_model_settings(patch).await?)
})
@@ -244,7 +241,6 @@ pub(super) fn handle_inference_update_local_settings(
model_id: update.model_id,
chat_model_id: update.chat_model_id,
usage_embeddings: update.usage_embeddings,
- usage_learning_reflection: update.usage_learning_reflection,
api_key: update.api_key,
};
to_json(crate::inference::rpc::inference_update_local_settings(patch).await?)