OpenProgram Docs

Provider metadata diagnostics

InputReturnsLog
provider.json missingexisting missing-entry or alias fallbacknone: some providers have no directory
provider.json unreadable, invalid or not an objectempty endpoint; the caller's fallback continuesone warning
models_dev.json missingempty cachenone: expected before a first fetch
models_dev.json unreadable, invalid or not an objectempty cache, short failure TTLone warning
models.dev network failuretries the disk cachenone: normal offline
warning("provider metadata load failed", extra={
  "source": "provider_json" | "models_dev_cache",
  "path": str(path) | "<unresolved>",
  "error_type": type(error).__name__,
})

<unresolved> only when computing the cache path fails. Never a traceback, exception message, file contents, credentials or response bodies. Corrupt files stay in place for inspection. Warnings change no fallback or return value.

FileFunction
providers/catalog/metadata.pyShared provider.json reader, used by _endpoints() and shipped_provider_ids()
providers/catalog/sources/models_dev.py_read_disk_cache()
Last updated · 2026-11-25