List Models
List available models for a provider
any_llm.list_models()
any_llm.list_models()def list_models(
provider: str | LLMProvider,
api_key: str | None = None,
api_base: str | None = None,
client_args: dict[str, Any] | None = None,
**kwargs: Any,
) -> Sequence[Model]any_llm.alist_models()
any_llm.alist_models()async def alist_models(
provider: str | LLMProvider,
api_key: str | None = None,
api_base: str | None = None,
client_args: dict[str, Any] | None = None,
**kwargs: Any,
) -> Sequence[Model]Parameters
Parameter
Type
Default
Description
Return Value
Usage
Async
Using the AnyLLM class
Last updated