yera.setup.model_discovery.ollama

Discover model configuration from an Ollama server.

Symbols

class OllamaModelSetup — Discover models available from a configured Ollama server.

OllamaModelSetup

Discover models available from a configured Ollama server.

Discovery requests the server's model catalogue, then requests details for each model to determine its capabilities and configuration. These are local or remote HTTP requests depending on the configured Ollama base URL; model inference is not performed.

Failure to retrieve the catalogue prevents discovery. Models whose details cannot be read or whose capabilities are unsupported are skipped with recoverable diagnostics. Discovery returns configuration and diagnostics without persisting them.

Methods

get_config — Obtain model configuration from the configured Ollama server.

OllamaModelSetup.get_config

get_config() → SetupResult[list[ModelConfig]]

Obtain model configuration from the configured Ollama server.

Discovery first requests the model catalogue and then requests details for each listed model. It does not run model inference. Failure to retrieve the catalogue is returned as a blocking error. Failure to inspect or classify an individual model is recoverable: that model is omitted with a warning and contributes to the skipped count.

Returns

type: SetupResult[list[ModelConfig]]

Supported Ollama model configuration and discovery diagnostics. The result is not persisted by this operation.