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): remove local preset and device profile schemas
Steven Enamakel05c709ce2b0a
diff --git a/crates/openhuman-core/src/inference/schemas/catalog.rs b/crates/openhuman-core/src/inference/schemas/catalog.rsindex 0ca78a7d11..6815b036fc 100644--- a/crates/openhuman-core/src/inference/schemas/catalog.rs+++ b/crates/openhuman-core/src/inference/schemas/catalog.rs@@ -97,27 +97,6 @@ pub fn schemas(function: &str) -> ControllerSchema {"Array of {provider, status, message, timestamp_ms} provider auth errors.",)],},- "device_profile" => ControllerSchema {- namespace: "inference",- function: "device_profile",- description: "Detect the local hardware profile used for local inference recommendations.",- inputs: vec![],- outputs: vec![json_output("profile", "Device hardware profile.")],- },- "presets" => ControllerSchema {- namespace: "inference",- function: "presets",- description: "List local inference model presets with recommendation and current selection.",- inputs: vec![],- outputs: vec![json_output("presets", "Inference preset payload.")],- },- "apply_preset" => ControllerSchema {- namespace: "inference",- function: "apply_preset",- description: "Apply a local inference preset to the persisted config.",- inputs: vec![required_string("tier", "Tier to apply: ram_2_4gb or disabled.")],- outputs: vec![json_output("result", "Applied preset payload.")],- },"diagnostics" => ControllerSchema {namespace: "inference",function: "diagnostics",diff --git a/crates/openhuman-core/src/inference/schemas/settings_handlers.rs b/crates/openhuman-core/src/inference/schemas/settings_handlers.rsindex 98dc0f8175..72d7094af9 100644--- a/crates/openhuman-core/src/inference/schemas/settings_handlers.rs+++ b/crates/openhuman-core/src/inference/schemas/settings_handlers.rs@@ -1,6 +1,6 @@//! Handlers for model and provider settings: resolution, status, client//! config, model and local-runtime settings updates, model listing, device-//! profile, auth errors, presets, and diagnostics.+//! auth errors, and diagnostics.use serde::de::Deserializer;use serde::Deserialize;@@ -78,11 +78,6 @@ pub(super) struct InferenceListModelsParams {provider_id: String,}-#[derive(Debug, Deserialize)]-pub(super) struct InferenceApplyPresetParams {- tier: String,-}-pub(super) fn handle_inference_resolve_model(params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let p = deserialize_params::<InferenceResolveModelParams>(params)?;@@ -263,27 +258,12 @@ pub(super) fn handle_inference_list_models(params: Map<String, Value>) -> Contro})}-pub(super) fn handle_inference_device_profile(_params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move { to_json(crate::inference::rpc::inference_device_profile().await?) })-}-pub(super) fn handle_inference_provider_auth_errors(_params: Map<String, Value>,) -> ControllerFuture {Box::pin(async move { to_json(crate::inference::rpc::inference_provider_auth_errors().await?) })}-pub(super) fn handle_inference_presets(_params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move { to_json(crate::inference::rpc::inference_presets().await?) })-}--pub(super) fn handle_inference_apply_preset(params: Map<String, Value>) -> ControllerFuture {- Box::pin(async move {- let request = deserialize_params::<InferenceApplyPresetParams>(params)?;- to_json(crate::inference::rpc::inference_apply_preset(&request.tier).await?)- })-}-pub(super) fn handle_inference_diagnostics(_params: Map<String, Value>) -> ControllerFuture {Box::pin(async move {let config = config_rpc::load_config_with_timeout().await?;diff --git a/crates/openhuman-core/src/inference/schemas_tests.rs b/crates/openhuman-core/src/inference/schemas_tests.rsindex 3ba5ba1d04..84d0508ff0 100644--- a/crates/openhuman-core/src/inference/schemas_tests.rs+++ b/crates/openhuman-core/src/inference/schemas_tests.rs@@ -33,9 +33,11 @@ fn inference_schema_function_names_are_stable() {assert!(functions.contains(&"update_model_settings"));assert!(functions.contains(&"update_local_settings"));assert!(functions.contains(&"list_models"));- assert!(functions.contains(&"device_profile"));- assert!(functions.contains(&"presets"));- assert!(functions.contains(&"apply_preset"));+ // Local model presets, device profiling and tiering were removed: the+ // user runs their own local runtime and picks models there.+ assert!(!functions.contains(&"device_profile"));+ assert!(!functions.contains(&"presets"));+ assert!(!functions.contains(&"apply_preset"));assert!(functions.contains(&"diagnostics"));assert!(functions.contains(&"openai_oauth_start"));assert!(functions.contains(&"openai_oauth_complete"));