{"record":{"id":"20f153245a4c049e","repo":"openai/codex","slug":"notfound-20f153","errorCode":"NotFound","errorMessage":"Built-in provider {LMSTUDIO_OSS_PROVIDER_ID} not found","messagePattern":"Built-in provider (.+?) not found","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/lmstudio/src/client.rs","lineNumber":24,"sourceCode":"use std::path::Path;\nuse std::time::Duration;\n\n#[derive(Clone)]\npub struct LMStudioClient {\n    client: RouteAwareClientPool,\n    base_url: String,\n}\n\nconst LMSTUDIO_CONNECTION_ERROR: &str = \"LM Studio is not responding. Install from https://lmstudio.ai/download and run 'lms server start'.\";\nconst LMSTUDIO_CONNECTION_TIMEOUT: Duration = Duration::from_secs(5);\n\nimpl LMStudioClient {\n    pub async fn try_from_provider(config: &Config) -> std::io::Result<Self> {\n        let provider = config\n            .model_providers\n            .get(LMSTUDIO_OSS_PROVIDER_ID)\n            .ok_or_else(|| {\n                io::Error::new(\n                    io::ErrorKind::NotFound,\n                    format!(\"Built-in provider {LMSTUDIO_OSS_PROVIDER_ID} not found\",),\n                )\n            })?;\n        let base_url = provider.base_url.as_ref().ok_or_else(|| {\n            io::Error::new(\n                io::ErrorKind::InvalidData,\n                \"oss provider must have a base_url\",\n            )\n        })?;\n\n        let client = RouteAwareClientPool::with_connect_timeout(\n            config.http_client_factory(),\n            ClientRouteClass::Other,\n            LMSTUDIO_CONNECTION_TIMEOUT,\n        );\n\n        let client = LMStudioClient {","sourceCodeStart":6,"sourceCodeEnd":42,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/lmstudio/src/client.rs#L6-L42","documentation":"Error \"Built-in provider {LMSTUDIO_OSS_PROVIDER_ID} not found\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/lmstudio/src/client.rs:24 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}