Skip to content

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

fix(schemas): correct field name in inference test assertion

Steven Enamakel428e90a2be99
diff --git a/crates/openhuman-core/src/inference/ops_tests.rs b/crates/openhuman-core/src/inference/ops_tests.rs
index b6a7ef8554..77fcdb6be0 100644
--- a/crates/openhuman-core/src/inference/ops_tests.rs
+++ b/crates/openhuman-core/src/inference/ops_tests.rs
@@ -54,15 +54,6 @@ async fn inference_summarize_reuses_local_ai_disabled_error() {
assert!(err.contains("local ai is disabled"));
}
-#[tokio::test]
-async fn inference_embed_reuses_local_ai_disabled_error() {
- let (config, _tmp) = disabled_config();
- let err = inference_embed(&config, &["hello".to_string()])
- .await
- .expect_err("embed should fail");
- assert!(err.contains("local ai is disabled"));
-}
-
#[tokio::test]
async fn inference_test_provider_model_routes_lmstudio_prefix_through_provider_layer() {
let (config, _tmp) = disabled_config();
@@ -168,27 +159,6 @@ async fn inference_get_client_config_returns_safe_snapshot() {
);
}
-#[tokio::test]
-async fn inference_apply_preset_rejects_invalid_tier() {
- let (config, _tmp) = disabled_config();
- config.save().await.expect("save config");
-
- let err = inference_apply_preset("ram_bogus")
- .await
- .expect_err("invalid tier should fail");
- assert!(err.contains("invalid tier"));
-}
-
-#[tokio::test]
-async fn inference_presets_returns_recommended_tier() {
- let (config, _tmp) = disabled_config();
- config.save().await.expect("save config");
-
- let outcome = inference_presets().await.expect("presets");
- assert!(outcome.value.get("recommended_tier").is_some());
- assert!(outcome.value.get("presets").is_some());
-}
-
#[tokio::test]
async fn inference_openai_oauth_start_returns_authorize_payload() {
let (config, _tmp) = disabled_config();
diff --git a/crates/openhuman-core/src/inference/schemas.rs b/crates/openhuman-core/src/inference/schemas.rs
index 58505897a7..ed118f3f28 100644
--- a/crates/openhuman-core/src/inference/schemas.rs
+++ b/crates/openhuman-core/src/inference/schemas.rs
@@ -42,9 +42,6 @@ pub fn all_controller_schemas() -> Vec<ControllerSchema> {
schemas("update_local_settings"),
schemas("list_models"),
schemas("provider_auth_errors"),
- schemas("device_profile"),
- schemas("presets"),
- schemas("apply_preset"),
schemas("diagnostics"),
schemas("openai_oauth_start"),
schemas("openai_oauth_complete"),
@@ -93,18 +90,6 @@ pub fn all_registered_controllers() -> Vec<RegisteredController> {
schema: schemas("provider_auth_errors"),
handler: handle_inference_provider_auth_errors,
},
- RegisteredController {
- schema: schemas("device_profile"),
- handler: handle_inference_device_profile,
- },
- RegisteredController {
- schema: schemas("presets"),
- handler: handle_inference_presets,
- },
- RegisteredController {
- schema: schemas("apply_preset"),
- handler: handle_inference_apply_preset,
- },
RegisteredController {
schema: schemas("diagnostics"),
handler: handle_inference_diagnostics,