openai/codex · error
oss provider must have a base_url
Error message
oss provider must have a base_url
What it means
Error "oss provider must have a base_url" thrown in openai/codex.
Source
Thrown at codex-rs/ollama/src/client.rs:79
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
}
/// Build a client from a provider definition and verify the server is reachable.
pub(crate) async fn try_from_provider(
provider: &ModelProviderInfo,
http_client_factory: HttpClientFactory,
) -> io::Result<Self> {
#![expect(clippy::expect_used)]
let base_url = provider
.base_url
.as_ref()
.expect("oss provider must have a base_url");
let uses_openai_compat = is_openai_compatible_base_url(base_url);
let host_root = base_url_to_host_root(base_url);
let client = RouteAwareClientPool::with_connect_timeout(
http_client_factory,
ClientRouteClass::Other,
OLLAMA_CONNECTION_TIMEOUT,
)
.with_legacy_custom_ca_fallback();
let client = Self {
client,
host_root,
uses_openai_compat,
};
client.probe_server().await?;
Ok(client)
}
/// Probe whether the server is reachable by hitting the appropriate health endpoint.View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/ollama/src/client.rs:79 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/f3a3a11524e9e7ac.
Report an issue: GitHub.