{"record":{"id":"fcee3157a10349d0","repo":"tinyhumansai/openhuman","slug":"your-local-inference-server-e-g-lm-studio-is-ru","errorCode":null,"errorMessage":"Your local inference server (e.g. LM Studio) is running but has no model loaded. Load a model — in LM Studio use the developer page or the `lms load` command — then try again.","messagePattern":"Your local inference server \\(e\\.g\\. LM Studio\\) is running but has no model loaded\\. Load a model — in LM Studio use the developer page or the `lms load` command — then try again\\.","errorType":"http","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/inference/provider/ops/http_error.rs","lineNumber":1136,"sourceCode":"            \"llm_provider\",\n            \"api_error\",\n            &[\n                (\"provider\", provider),\n                (\"status\", status_str.as_str()),\n                (\"failure\", \"non_2xx\"),\n            ],\n        );\n    }\n    // Replace the opaque `Internal Server Error (ref: <uuid>)` body with\n    // actionable guidance; the prefix anchors the higher-layer re-report\n    // demotion (`is_ollama_cloud_internal_500_message`).\n    if is_ollama_cloud_internal_500 {\n        return anyhow::anyhow!(ollama_cloud_internal_500_user_message(None, status));\n    }\n    // Replace the raw `No models loaded` body with actionable guidance so the\n    // surfaced chat error tells the user how to recover (TAURI-RUST-DMQ).\n    if is_local_provider_no_model_loaded {\n        return anyhow::anyhow!(local_provider_no_model_loaded_user_message());\n    }\n    anyhow::anyhow!(message)\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n    use reqwest::StatusCode;\n\n    /// Verbatim TAURI-RUST-DMQ LM Studio body — the local server is running but\n    /// has no model loaded. The matcher keys on this prose, so coupling the test\n    /// to the exact string makes a wording drift fail CI rather than silently\n    /// leak events back to Sentry.\n    const DMQ_BODY: &str = \"lm_studio API error (400 Bad Request): {\\\"error\\\":\\\n        {\\\"message\\\":\\\"No models loaded. Please load a model in the developer page \\\n        or via `lms load`.\\\",\\\"type\\\":\\\"invalid_request_error\\\",\\\"param\\\":\\\"model\\\"}}\";\n\n    #[test]","sourceCodeStart":1118,"sourceCodeEnd":1154,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/inference/provider/ops/http_error.rs#L1118-L1154","documentation":"Error \"Your local inference server (e.g. LM Studio) is running but has no model loaded. Load a model — in LM Studio use the developer page or the `lms load` command — then try again.\" thrown in tinyhumansai/openhuman.","triggerScenarios":"Thrown at src/openhuman/inference/provider/ops/http_error.rs:1136 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Load a model in the local server — in LM Studio use the developer page or run `lms load <model>`","Verify the local server's base URL points at the intended instance","Confirm the loaded model name matches what the provider string requests"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}