Ollama HTTP integration used by model validation and backend resolution.
This module wraps the small set of Ollama endpoints the core runtime uses to verify availability, inspect installed models, and validate model ids.
Summary
Functions
Normalizes an Ollama base URL for Codex's OpenAI-compatible OSS route.
Types
Functions
Normalizes an Ollama base URL for Codex's OpenAI-compatible OSS route.
Raw Ollama roots such as http://localhost:11434 are promoted to /v1
because current Codex CLI OSS requests target OpenAI-style endpoints below
that prefix. Explicit non-root paths are preserved.
@spec default_base_url() :: String.t()
@spec list_models(keyword()) :: {:ok, [model_info()]} | {:error, term()}
@spec running_models(keyword()) :: {:ok, [model_info()]} | {:error, term()}
@spec show_model( String.t(), keyword() ) :: {:ok, model_info()} | {:error, term()}