yera.setup.provider_setup.ollama
Obtain and validate Ollama provider configuration.
Symbols
OllamaProviderSetup
ProviderSetup[OllamaConnection]Provide presentation-independent Ollama setup operations.
Configuration discovery resolves OLLAMA_HOST with the conventional
local server as its fallback. Validation probes the configured server's
tags endpoint.
Attributes
Configuration key for the Ollama provider.
Python import paths required by the integration.
Methods
OllamaProviderSetup.get_config
get_config() → SetupResult[tuple[OllamaConnection, ...]]Obtain Ollama configuration from the current environment.
Returns
A valid result containing one normalized Ollama connection candidate based on OLLAMA_HOST or the conventional local URL.
OllamaProviderSetup.validate
validate(
config: OllamaConnection,
secret_store: SecretStore | None = None,
) → SetupResult[OllamaConnection]Validate connectivity to an Ollama server.
Parameters
Ollama connection whose tags endpoint should be probed.
Unused credential-store override accepted through the common provider validation interface.
Returns
The supplied configuration and a blocking error when the server is unreachable or returns an unsuccessful HTTP response.