openai/codex · error · io::Error
NotFound
NotFound
Error message
Built-in provider {OLLAMA_OSS_PROVIDER_ID} not found What it means
Error "Built-in provider {OLLAMA_OSS_PROVIDER_ID} not found" thrown in openai/codex.
Source
Thrown at codex-rs/ollama/src/client.rs:51
pub struct OllamaClient {
client: RouteAwareClientPool,
host_root: String,
uses_openai_compat: bool,
}
impl OllamaClient {
/// Construct a client for the built‑in open‑source ("oss") model provider
/// and verify that a local Ollama server is reachable. If no server is
/// detected, returns an error with helpful installation/run instructions.
pub async fn try_from_oss_provider(config: &Config) -> io::Result<Self> {
// Note that we must look up the provider from the Config to ensure that
// any overrides the user has in their config.toml are taken into
// account.
let provider = config
.model_providers
.get(OLLAMA_OSS_PROVIDER_ID)
.ok_or_else(|| {
io::Error::new(
io::ErrorKind::NotFound,
format!("Built-in provider {OLLAMA_OSS_PROVIDER_ID} not found",),
)
})?;
Self::try_from_provider(provider, config.http_client_factory()).await
}
#[cfg(test)]
async fn try_from_provider_with_base_url(base_url: &str) -> io::Result<Self> {
let provider = create_oss_provider_with_base_url(base_url, WireApi::Responses);
Self::try_from_provider(
&provider,
HttpClientFactory::new(OutboundProxyPolicy::ReqwestDefault),
)
.await
}
View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/ollama/src/client.rs:51 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of openai/codex@339751715c (2026-08-25).
Data as JSON: /api/errors/e3fc2e83389a3015.
Report an issue: GitHub.