openai/codex · error · io::Error
NotFound
NotFound
Error message
Built-in provider {LMSTUDIO_OSS_PROVIDER_ID} not found What it means
Error "Built-in provider {LMSTUDIO_OSS_PROVIDER_ID} not found" thrown in openai/codex.
Source
Thrown at codex-rs/lmstudio/src/client.rs:24
use std::path::Path;
use std::time::Duration;
#[derive(Clone)]
pub struct LMStudioClient {
client: RouteAwareClientPool,
base_url: String,
}
const LMSTUDIO_CONNECTION_ERROR: &str = "LM Studio is not responding. Install from https://lmstudio.ai/download and run 'lms server start'.";
const LMSTUDIO_CONNECTION_TIMEOUT: Duration = Duration::from_secs(5);
impl LMStudioClient {
pub async fn try_from_provider(config: &Config) -> std::io::Result<Self> {
let provider = config
.model_providers
.get(LMSTUDIO_OSS_PROVIDER_ID)
.ok_or_else(|| {
io::Error::new(
io::ErrorKind::NotFound,
format!("Built-in provider {LMSTUDIO_OSS_PROVIDER_ID} not found",),
)
})?;
let base_url = provider.base_url.as_ref().ok_or_else(|| {
io::Error::new(
io::ErrorKind::InvalidData,
"oss provider must have a base_url",
)
})?;
let client = RouteAwareClientPool::with_connect_timeout(
config.http_client_factory(),
ClientRouteClass::Other,
LMSTUDIO_CONNECTION_TIMEOUT,
);
let client = LMStudioClient {View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/lmstudio/src/client.rs:24 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/20f153245a4c049e.
Report an issue: GitHub.