simonw / llm

Access large language models from the command-line
https://llm.datasette.io
Apache License 2.0
4.85k stars 272 forks source link

llm.get_models() and .get_async_models() documented functions #640

Closed simonw closed 4 days ago

simonw commented 6 days ago

For the Python API. Currently you have to mess around with this function instead: https://github.com/simonw/llm/blob/a6d62b7ec97d8fe3658c53cee32e777f1e23d776/llm/__init__.py#L70

simonw commented 4 days ago

https://github.com/simonw/llm/blob/c52cfee881d2150643bd3fa80cd82a3f81b76b59/llm/__init__.py#L170-L177

Documented here: https://github.com/simonw/llm/blob/c52cfee881d2150643bd3fa80cd82a3f81b76b59/docs/python-api.md#listing-models