ProviderModelListers
Model listers for the providers built into llm4s-core, and the factory behind most of them.
A provider module outside core supplies its own lister the same way: call openAICompatible if the provider serves the OpenAI /models shape, or implement ProviderModelLister if it does not.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
ProviderModelListers.type
Members list
Type members
Classlikes
Model lister for the Anthropic provider, using paginated API requests.
Model lister for the Anthropic provider, using paginated API requests.
Attributes
- Supertypes
- Self type
-
Anthropic.type
Model lister for the Gemini provider, using paginated API requests.
Model lister for the Gemini provider, using paginated API requests.
Attributes
- Supertypes
- Self type
-
Gemini.type
Model lister for the Ollama provider using the local /api/tags endpoint.
Model lister for the Ollama provider using the local /api/tags endpoint.
Attributes
- Supertypes
- Self type
-
Ollama.type
Value members
Concrete methods
A lister for any provider serving the OpenAI-compatible /models endpoint.
A lister for any provider serving the OpenAI-compatible /models endpoint.
This is the shape most providers have, so a provider module supplying its own descriptor can usually call this rather than implement ProviderModelLister from scratch.
Value parameters
- defaultBaseUrl
-
base URL used when the section does not override it
- modelsPath
-
path of the listing endpoint, relative to the base URL
- provider
-
the
ProviderIdthat owns the returned models; the config section must name it
Attributes
Concrete fields
Model lister for the DeepSeek provider using the OpenAI-compatible models endpoint.
Model lister for the DeepSeek provider using the OpenAI-compatible models endpoint.
Attributes
Model lister for the Mistral provider using the OpenAI-compatible models endpoint.
Model lister for the Mistral provider using the OpenAI-compatible models endpoint.
Attributes
Model lister for the OpenAI provider.
Model lister for the OpenAI provider.
Attributes
Model lister for the OpenRouter provider.
Model lister for the OpenRouter provider.
Attributes
Model lister for the Requesty provider.
Model lister for the Requesty provider.