ProviderModelLister

org.llm4s.config.ProviderModelLister
@Stable

Discovers available models from a provider's live API endpoint.

llm4s-core ships no provider and so no lister: each provider module supplies one on its descriptor. Most call ProviderModelListers.openAICompatible in llm4s-openai-compatible, the factory for the OpenAI /models shape; the rest implement this trait.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract 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