ProviderModelListers

org.llm4s.config.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 Object
trait Matchable
class Any
Self 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
class Object
trait Matchable
class Any
Self type
Anthropic.type
object Gemini extends ProviderModelLister

Model lister for the Gemini provider, using paginated API requests.

Model lister for the Gemini provider, using paginated API requests.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
Gemini.type
object Ollama extends ProviderModelLister

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
class Object
trait Matchable
class Any
Self type
Ollama.type

Value members

Concrete methods

def openAICompatible(provider: ProviderId, defaultBaseUrl: String, modelsPath: String): ProviderModelLister

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 ProviderId that 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.

Attributes