{"record":{"id":"e3fc2e83389a3015","repo":"openai/codex","slug":"notfound-e3fc2e","errorCode":"NotFound","errorMessage":"Built-in provider {OLLAMA_OSS_PROVIDER_ID} not found","messagePattern":"Built-in provider (.+?) not found","errorType":"exception","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/ollama/src/client.rs","lineNumber":51,"sourceCode":"pub struct OllamaClient {\n    client: RouteAwareClientPool,\n    host_root: String,\n    uses_openai_compat: bool,\n}\n\nimpl OllamaClient {\n    /// Construct a client for the built‑in open‑source (\"oss\") model provider\n    /// and verify that a local Ollama server is reachable. If no server is\n    /// detected, returns an error with helpful installation/run instructions.\n    pub async fn try_from_oss_provider(config: &Config) -> io::Result<Self> {\n        // Note that we must look up the provider from the Config to ensure that\n        // any overrides the user has in their config.toml are taken into\n        // account.\n        let provider = config\n            .model_providers\n            .get(OLLAMA_OSS_PROVIDER_ID)\n            .ok_or_else(|| {\n                io::Error::new(\n                    io::ErrorKind::NotFound,\n                    format!(\"Built-in provider {OLLAMA_OSS_PROVIDER_ID} not found\",),\n                )\n            })?;\n\n        Self::try_from_provider(provider, config.http_client_factory()).await\n    }\n\n    #[cfg(test)]\n    async fn try_from_provider_with_base_url(base_url: &str) -> io::Result<Self> {\n        let provider = create_oss_provider_with_base_url(base_url, WireApi::Responses);\n        Self::try_from_provider(\n            &provider,\n            HttpClientFactory::new(OutboundProxyPolicy::ReqwestDefault),\n        )\n        .await\n    }\n","sourceCodeStart":33,"sourceCodeEnd":69,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/ollama/src/client.rs#L33-L69","documentation":"Error \"Built-in provider {OLLAMA_OSS_PROVIDER_ID} not found\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/ollama/src/client.rs:51 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"}