OllamaModelLister

org.llm4s.config.OllamaModelLister

Model lister for the Ollama provider, using the local /api/tags endpoint.

Ollama does not serve the OpenAI-compatible /models shape, so unlike most providers it cannot use ProviderModelListers.openAICompatible. This was ProviderModelListers.Ollama until the provider moved to llm4s-ollama (#1132).

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

Fetches the list of available models for the given provider configuration.

Fetches the list of available models for the given provider configuration.

Value parameters

config

the validated named provider configuration containing credentials and base URL

httpClient

the HTTP client to use for API requests

Attributes

Returns

Right with the list of discovered models, or Left with an error